1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-23 15:14:23 +00:00
festa/components/generic/views/notice.tsx

23 lines
472 B
TypeScript
Raw Normal View History

2022-06-11 03:08:49 +00:00
import { memo, ReactNode } from "react"
import style from "./notice.module.css"
export type ViewNoticeProps = {
notice: ReactNode
}
/**
* A view which displays its contents centered on the screen.
*
* Intended for errors or other important alerts.
*/
export const ViewNotice = memo((props: ViewNoticeProps) => {
return (
<main className={style.viewNotice}>
{props.notice}
</main>
)
})
2022-07-16 14:12:29 +00:00
ViewNotice.displayName = "ViewNotice"