import { Button } from "@repo/shadcn-ui/components/button"; import { ChevronLeftIcon, ChevronRightIcon } from "../lib/icons"; import { FormActions } from "./form-dialog"; /** Acciones de formulario completo o por pasos; el consumidor aporta navegación y textos. */ export function FormStepActions({ step, total, pending, canContinue, onPrevious, previousLabel, nextLabel, saveLabel, }: { step: number | undefined; total: number; pending: boolean; canContinue: boolean; onPrevious: () => void; previousLabel: string; nextLabel: string; saveLabel: string; }) { const hasNext = step !== undefined && step < total; return ( {step !== undefined && step > 1 && ( )} ); }