mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-15 06:15:12 +01:00
3c5fb66073
Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com>
22 lines
485 B
TypeScript
22 lines
485 B
TypeScript
import { Helmet } from "react-helmet-async";
|
|
|
|
import { Transition } from "@/components/Transition";
|
|
|
|
export function Overlay(props: { children: React.ReactNode }) {
|
|
return (
|
|
<>
|
|
<Helmet>
|
|
<body data-no-scroll />
|
|
</Helmet>
|
|
<div className="fixed inset-0 z-[99999]">
|
|
<Transition
|
|
animation="fade"
|
|
className="absolute inset-0 bg-[rgba(8,6,18,0.85)]"
|
|
isChild
|
|
/>
|
|
{props.children}
|
|
</div>
|
|
</>
|
|
);
|
|
}
|