"use client"; import { Button } from "@suphark/ui/components/shared/button/button"; import { useUiText } from "@suphark/ui/components/shared/ui-text"; import type { DrawerParts } from "@suphark/ui/hooks/use-lazy-drawer"; import { cn } from "@suphark/ui/lib/utils"; import type { ReactElement, ReactNode } from "react"; /** class ของแถวคำสั่งในแผ่นล่าง: สูง 48px ไอคอนชิดซ้าย `destructive` สีแดง */ export function actionSheetRowClass(destructive?: boolean) { return cn( "flex h-12 w-full cursor-pointer items-center gap-3.5 px-5 text-left text-sm outline-none hover:bg-muted focus-visible:bg-muted disabled:cursor-not-allowed disabled:opacity-50 [&_svg]:size-5 [&_svg]:shrink-0", destructive ? "text-destructive" : "[&_svg]:text-muted-foreground", ); } export function ActionSheetSeparator() { return
; } export function ActionSheetLabel({ children }: { children: ReactNode }) { return