import { Button } from "~/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "~/components/ui/dialog"; interface TimeBankAdjustmentDialogProps { open: boolean; onOpenChange: (open: boolean) => void; teamName: string | undefined; amount: string; onAmountChange: (value: string) => void; unit: "seconds" | "minutes" | "hours"; onUnitChange: (value: "seconds" | "minutes" | "hours") => void; direction: "add" | "remove"; onDirectionChange: (value: "add" | "remove") => void; isAdjusting: boolean; onConfirm: () => void; } export function TimeBankAdjustmentDialog({ open, onOpenChange, teamName, amount, onAmountChange, unit, onUnitChange, direction, onDirectionChange, isAdjusting, onConfirm, }: TimeBankAdjustmentDialogProps) { return ( Adjust Time Bank {teamName ? `Adjusting time for ${teamName}` : "Adjust a team's time bank"}
onAmountChange(e.target.value)} className="flex-1 px-3 py-2 border rounded-md bg-background text-foreground text-base md:text-sm" placeholder="Amount" />
); }