19 lines
530 B
TypeScript
19 lines
530 B
TypeScript
interface Props {
|
|
title: JSX.Element | string
|
|
children: React.ReactNode
|
|
backdrop?: boolean | 'dirt'
|
|
}
|
|
|
|
export default ({ title, children, backdrop = true }: Props) => {
|
|
return (
|
|
<>
|
|
{backdrop === 'dirt' ? <div className='dirt-bg'></div> : backdrop ? <div className="backdrop"></div> : null}
|
|
<div className='fullscreen' style={{ overflow: 'auto' }}>
|
|
<div className="screen-content">
|
|
<div className="screen-title">{title}</div>
|
|
{children}
|
|
</div>
|
|
</div>
|
|
</>
|
|
)
|
|
}
|