import React from "react"; import { Box, MenuItem, Paper, TextField } from "@mui/material"; type ProficiencyLevel = | "" | "NONE" | "VERY_WEAK" | "WEAK" | "AVERAGE" | "GOOD" | "VERY_GOOD" | "EXCELLENT"; const proficiencyOptions: { value: ProficiencyLevel; label: string }[] = [ { value: "", label: "انتخاب ..." }, { value: "NONE", label: "ندارد" }, { value: "VERY_WEAK", label: "خیلی ضعیف" }, { value: "WEAK", label: "ضعیف" }, { value: "AVERAGE", label: "متوسط" }, { value: "GOOD", label: "خوب" }, { value: "VERY_GOOD", label: "خیلی خوب" }, { value: "EXCELLENT", label: "عالی" }, ]; export interface LanguageSkillsUIData { englishLevel: ProficiencyLevel; englishDescription: string; englishCertificate: string; arabicLevel: ProficiencyLevel; arabicDescription: string; otherLanguagesDescription: string; dialectsDescription: string; otherSkills: string; } interface Props { value: LanguageSkillsUIData; onChange: (next: LanguageSkillsUIData) => void; } export default function LanguageSkillsForm({ value, onChange }: Props) { const setField = (field: keyof LanguageSkillsUIData) => (e: React.ChangeEvent) => { onChange({ ...value, [field]: e.target.value }); }; return ( {/* زبان انگلیسی */} {proficiencyOptions.map((o) => ( {o.label} ))} {/* زبان عربی */} {proficiencyOptions.map((o) => ( {o.label} ))} {/* برای حفظ چینش دو ستونه */} {/* سایر زبان‌ها */} {/* گویش‌ها و لهجه‌ها */} {/* سایر مهارت‌ها */} ); }