add headers fields

This commit is contained in:
2026-06-02 22:01:41 +02:00
parent 551b07fc42
commit 7e205df26d
5 changed files with 123 additions and 28 deletions
+22
View File
@@ -0,0 +1,22 @@
export interface IFormField {
fieldName: string;
type: string;
}
const FormField = ({ fieldName, type }: IFormField) => {
return (
<div className="flex flex-col gap-2">
<label htmlFor={fieldName} className="text-sm capitalize">
{fieldName}
</label>
<input
className="headers__input"
type={type}
id={fieldName}
name={fieldName}
/>
</div>
);
};
export default FormField;