silverwolf-x's picture
download
raw
522 Bytes
import * as React from 'react'
import { lock, unlock } from './body-locker'
export type OverlayProps = React.HTMLAttributes<HTMLDivElement> & {
fixed?: boolean
ref?: React.Ref<HTMLDivElement>
}
const Overlay: React.FC<OverlayProps> = function Overlay({
className,
children,
...props
}) {
React.useEffect(() => {
lock()
return () => {
unlock()
}
}, [])
return (
<div data-nextjs-dialog-overlay className={className} {...props}>
{children}
</div>
)
}
export { Overlay }

Xet Storage Details

Size:
522 Bytes
·
Xet hash:
f0c29042b9e445e9ed6190d71d6a7f390a607e41b2102a3f8156d18972fec00c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.