"use client"; import { useRef, type ReactNode } from "react"; import { Ellipsis, X } from "lucide-react"; import { Button } from "@/components/ui/button"; /** "⋯" button that opens a side dialog (native ) with page settings rendered on the server. */ export function SettingsDialog({ title, children }: { title: string; children: ReactNode }) { const ref = useRef(null); return ( <> e.target === ref.current && ref.current.close()} className="m-0 ml-auto h-dvh max-h-dvh w-[400px] max-w-full border-l bg-sidebar p-0 text-foreground backdrop:bg-black/50" >

{title}

{children}
); }