"use client"; import { RiCalculatorLine } from "@remixicon/react"; import { CalculatorDialogButton } from "@/components/calculadora/calculator-dialog"; import { CurrencyInput } from "@/components/ui/currency-input"; import { DatePicker } from "@/components/ui/date-picker"; import { Label } from "@/components/ui/label"; import { EstabelecimentoInput } from "../../shared/estabelecimento-input"; import type { BasicFieldsSectionProps } from "./lancamento-dialog-types"; export function BasicFieldsSection({ formState, onFieldChange, estabelecimentos, }: Omit) { return (
onFieldChange("name", value)} estabelecimentos={estabelecimentos} placeholder="Ex.: Restaurante do Zé" maxLength={20} required />
onFieldChange("purchaseDate", value)} placeholder="Data" required />
onFieldChange("amount", value)} placeholder="R$ 0,00" required className="pr-10" /> onFieldChange("amount", value)} >
); }