"use client"; import { CurrencyInput } from "@/components/ui/currency-input"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/components/ui/select"; import { Textarea } from "@/components/ui/textarea"; import { Checkbox } from "@/components/ui/checkbox"; import { StatusSelectContent } from "./account-select-items"; import type { AccountFormValues } from "./types"; interface AccountFormFieldsProps { values: AccountFormValues; accountTypes: string[]; accountStatuses: string[]; onChange: (field: keyof AccountFormValues, value: string) => void; showInitialBalance?: boolean; } export function AccountFormFields({ values, accountTypes, accountStatuses, onChange, showInitialBalance = true, }: AccountFormFieldsProps) { return (
onChange("name", event.target.value)} placeholder="Ex.: Nubank" required />
{showInitialBalance ? (
onChange("initialBalance", value)} placeholder="R$ 0,00" />
) : null}