import React from 'react'; import { Input, Select, Icon, Image } from '@akinon/next/components'; import { Control, FieldError, FieldErrors, UseFormRegister } from 'react-hook-form'; export interface CardFormSectionProps { register: UseFormRegister; control: Control; errors: FieldErrors; months: Array<{ label: string; value: string }>; years: Array<{ label: string; value: string }>; translations?: { cardHolder?: string; cardNumber?: string; expiryDate?: string; cvv?: string; cvvTooltip?: string; saveCardForFuture?: string; }; } export const CardFormSection = ({ register, control, errors, months, years, translations = {} }: CardFormSectionProps) => { return (
{translations.cardNumber}
{translations.cvv}
Cvv
); };