15 lines
361 B
TypeScript
15 lines
361 B
TypeScript
import { ReactNode } from "react"
|
|
|
|
type Props = {
|
|
children: ReactNode
|
|
}
|
|
|
|
export default function ModalWrapper({children}:Props) {
|
|
return (
|
|
<div className="z-50 fixed inset-0">
|
|
<div className="bg-black/50 fixed inset-0"></div>
|
|
<div className="relative h-full flex flex-col justify-center items-center">{children}</div>
|
|
</div>
|
|
)
|
|
}
|