fields: {type: TypeEnum; classNames: string[]; id: string}[];
render() {
const mappedFields: HTMLElement[] = this.fields.map(field => new InputField(field.type, ...field.classNames).render());
this.element.append(...mappedFields);
this.element.append(new Button('submit', 'create-car-submit', 'Create', 'btn', 'blue') .render());
}