import { TextInput, Select, Textarea, NumberInput, Group, Text, MultiSelect } from '@pikku/mantine/core'; import { DateInput } from '@mantine/dates'; import { ApplicantStatuses, CandidateDocumentTypes, LanguageLevels, NurseRecognitionGermanyValues, NurseRecognitionHomeCountryValues, } from '@heygermany/sdk'; import React from 'react'; import { EnumSelect } from '@/components/common/EnumSelect'; import { useI18n } from '@/context/i18n-provider'; import { asI18n } from '@pikku/react'; export type FieldComponentProps = { value: any; onChange: (value: any) => void; label?: any; placeholder?: any; disabled?: boolean; }; export type FieldComponent = (props: FieldComponentProps) => React.ReactElement; // Reusable component functions export const TextInputComponent: FieldComponent = ({ value, onChange, label, placeholder, disabled }) => ( onChange(e.target.value)} label={label as any} placeholder={placeholder as any} disabled={disabled} /> ); export const TextareaComponent: FieldComponent = ({ value, onChange, label, placeholder, disabled }) => (