mirror of
https://github.com/sussy-code/smov.git
synced 2026-05-09 11:30:32 +00:00
20 lines
421 B
TypeScript
20 lines
421 B
TypeScript
import classNames from "classnames";
|
|
import { ReactNode } from "react";
|
|
|
|
interface Props {
|
|
id: string;
|
|
children?: ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export function OverlayAnchor(props: Props) {
|
|
return (
|
|
<div className={classNames("relative", props.className)}>
|
|
<div
|
|
id={`__overlayRouter::${props.id}`}
|
|
className="absolute inset-0 -z-10"
|
|
/>
|
|
{props.children}
|
|
</div>
|
|
);
|
|
}
|