import { store } from '@/actions/App/Http/Controllers/Settings/LabelController'; import { Badge } from '@/components/ui/badge'; import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from '@/components/ui/dialog'; import { Input } from '@/components/ui/input'; import { Label } from '@/components/ui/label'; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from '@/components/ui/select'; import { getLabelColorClasses, LABEL_COLORS } from '@/types/label'; import { Form } from '@inertiajs/react'; import { useState } from 'react'; export function CreateLabelDialog({ onSuccess }: { onSuccess?: () => void }) { const [open, setOpen] = useState(false); return ( Create Label Add a new label to tag your transactions.
{ setOpen(false); onSuccess?.(); }} className="space-y-4" > {({ errors, processing }) => ( <>
{errors.name && (

{errors.name}

)}
{errors.color && (

{errors.color}

)}
)}
); }