"use client";
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
import { XIcon } from "lucide-react";
import { cn } from "~/lib/utils";
import { Button } from "~/components/ui/button";
import { ScrollArea } from "~/components/ui/scroll-area";
const Sheet = SheetPrimitive.Root;
const SheetPortal = SheetPrimitive.Portal;
function SheetTrigger(props: SheetPrimitive.Trigger.Props) {
return ;
}
function SheetClose(props: SheetPrimitive.Close.Props) {
return ;
}
function SheetBackdrop({ className, ...props }: SheetPrimitive.Backdrop.Props) {
return (
);
}
function SheetViewport({
className,
side,
variant = "default",
...props
}: SheetPrimitive.Viewport.Props & {
side?: "right" | "left" | "top" | "bottom";
variant?: "default" | "inset";
}) {
return (
);
}
function SheetPopup({
className,
children,
showCloseButton = true,
keepMounted = false,
side = "right",
variant = "default",
...props
}: SheetPrimitive.Popup.Props & {
showCloseButton?: boolean;
keepMounted?: boolean;
side?: "right" | "left" | "top" | "bottom";
variant?: "default" | "inset";
}) {
return (
{children}
{showCloseButton && (
}
>
)}
);
}
function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
return (
);
}
function SheetFooter({
className,
variant = "default",
...props
}: React.ComponentProps<"div"> & {
variant?: "default" | "bare";
}) {
return (
);
}
function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) {
return (
);
}
function SheetDescription({ className, ...props }: SheetPrimitive.Description.Props) {
return (
);
}
function SheetPanel({
className,
scrollFade = true,
...props
}: React.ComponentProps<"div"> & { scrollFade?: boolean }) {
return (
);
}
export {
Sheet,
SheetTrigger,
SheetPortal,
SheetClose,
SheetBackdrop,
SheetBackdrop as SheetOverlay,
SheetPopup,
SheetPopup as SheetContent,
SheetHeader,
SheetFooter,
SheetTitle,
SheetDescription,
SheetPanel,
};