"use client"; import { Dialog as SheetPrimitive } from "@base-ui/react/dialog"; import { useUiText } from "@suphark/ui/components/shared/ui-text"; import { Button } from "@suphark/ui/components/ui/button"; import { cn } from "@suphark/ui/lib/utils"; import { XIcon } from "lucide-react"; import type * as React from "react"; function Sheet({ ...props }: SheetPrimitive.Root.Props) { return ; } function SheetTrigger({ ...props }: SheetPrimitive.Trigger.Props) { return ; } function SheetClose({ ...props }: SheetPrimitive.Close.Props) { return ; } function SheetPortal({ ...props }: SheetPrimitive.Portal.Props) { return ; } function SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) { return ( ); } function SheetContent({ className, children, side = "right", showCloseButton = true, ...props }: SheetPrimitive.Popup.Props & { side?: "top" | "right" | "bottom" | "left"; showCloseButton?: boolean; }) { // ชื่อปุ่มปิดสำหรับโปรแกรมอ่านจอตามภาษาของแอป (เดิม "Close" ตายตัว — แก้มือ ดู CLAUDE.md) const closeLabel = useUiText().close ?? "ปิด"; return ( {children} {showCloseButton && ( } > {closeLabel} )} ); } function SheetHeader({ className, ...props }: React.ComponentProps<"div">) { return (
); } function SheetFooter({ className, ...props }: React.ComponentProps<"div">) { return (
); } function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) { return ( ); } function SheetDescription({ className, ...props }: SheetPrimitive.Description.Props) { return ( ); } export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, };