'use client' /** * ConsumerActionButtons — standard dual CTA row (primary + cancel) for consumer UI. */ import type { ReactNode } from 'react' import ConsumerButton from '@/components/consumer/ConsumerButton' import AngleLeftIcon from '@/components/icons/AngleLeftIcon' import CloseLinearIcon from '@/components/icons/CloseLinearIcon' import { cn } from '@/lib/cn' import { texts } from '@/texts' import { type ConsumerButtonAlign } from './consumerButtonTypes' export interface ConsumerActionButtonsProps { cancelDisabled?: boolean cancelIcon?: ReactNode cancelLabel?: string cancelType?: 'button' | 'reset' className?: string isCancelLoading?: boolean isPrimaryLoading?: boolean onCancel?: () => void onPrimary?: () => void primaryDisabled?: boolean primaryDanger?: boolean primaryIcon?: ReactNode primaryLabel?: string primaryType?: 'button' | 'submit' align?: ConsumerButtonAlign } export default function ConsumerActionButtons({ cancelDisabled = false, cancelIcon = , cancelLabel = texts.common.cancel, cancelType = 'button', className, isCancelLoading = false, isPrimaryLoading = false, onCancel, onPrimary, primaryDisabled = false, primaryDanger = false, primaryIcon = , primaryLabel = texts.events.nextStep, primaryType = 'submit', align = 'start', }: ConsumerActionButtonsProps) { return (
{primaryLabel} {cancelLabel}
) }