mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-23 07:04:22 +00:00
22 lines
434 B
TypeScript
22 lines
434 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>
|
||
|
)
|
||
|
})
|