You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
479 B
21 lines
479 B
import { Helmet } from "react-helmet"; |
|
|
|
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> |
|
</> |
|
); |
|
}
|
|
|