mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-19 15:52:08 +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>
|
|
);
|
|
}
|