import { Dialog as BaseDialog } from '@base-ui/react/dialog'; import { XIcon } from 'lucide-react'; import { cn } from '#/lib/utils.js'; /** A centered modal. `trigger` (an element) opens it; `title` heads it. */ export function Dialog({ trigger, title, children, className }) { return (

{title}

{/* The scroll container clips on both axes, and a control's focus ring is a shadow outside its box. The padding gives rings room; the negative margin keeps the layout where it was. */}
{children}
); }