1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-10-16 15:07:27 +00:00
festa/components/generic/views/notice.tsx

22 lines
472 B
TypeScript

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>
)
})
ViewNotice.displayName = "ViewNotice"