/* eslint-disable @typescript-eslint/no-explicit-any */ interface InputFieldProps { icon: string; label: string; placeholder: string; value: string; onChange: (e: React.ChangeEvent) => void; type?: string; step?: string; errors?: any; name: string; page?: string; } const InputFieldCustom: React.FC = ({ icon, label, placeholder, value, onChange, type = "text", // default to "text" if not provided step, errors, name, page = "", }) => (
{page == "my-profile" ? (
{errors?.[name] && (
{errors?.[name]}
)}
) : (
{errors?.[name] && (
{errors?.[name]}
)}
)}
); export default InputFieldCustom;