"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export interface ActionSheetOption { id: string; label: string; danger?: boolean; } export interface ActionSheetProps extends Omit, "onSelect"> { options?: ActionSheetOption[]; title?: string; onSelect?: (id: string) => void; } const FALLBACK: ActionSheetOption[] = [ { id: "print", label: "Print stub" }, { id: "transfer", label: "Transfer seat" }, { id: "void", label: "Void order", danger: true }, ]; /** Action sheet list with danger stamp option. */ export function ActionSheet({ options = FALLBACK, title = "Stub actions", onSelect, className, ...props }: ActionSheetProps) { const [picked, setPicked] = React.useState(null); return (

{title}

    {options.map((o) => (
  • ))}
); }