mirror of
https://github.com/movie-web/movie-web.git
synced 2025-02-02 02:28:41 +00:00
0c57aa1a73
Co-authored-by: Jip Frijlink <JipFr@users.noreply.github.com> Co-authored-by: James Hawkins <jhawki2005@gmail.com>
21 lines
478 B
TypeScript
21 lines
478 B
TypeScript
import { Transition } from "@/components/Transition";
|
|
import { Helmet } from "react-helmet";
|
|
|
|
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>
|
|
</>
|
|
);
|
|
}
|