interface FormData {
  personalId: string;
  prefix: string;
  firstname: string;
  lastname: string;
  position: string;
  phone: string;
  email: string;
  qualification: string;
}
interface FormDataPost {
  personalId: string;
  prefix: string;
  firstname: string;
  lastname: string;
  position: string;
  phone: string;
  email: string;
  qualification: string;
}
interface FormRef {
  prefix: object | null;
  firstname: object | null;
  lastname: object | null;
  position: object | null;
  // phone: object | null;
  // email: object | null;
  [key: string]: any;
}
interface typeOp {
  id: string;
  name: string;
}

interface ResponsePreson {
  personId: string; //id อ้างอิง profile
  idcard: string; //เลขประจำตัวประชาชน
  prefix: string; //คำนำหน้า
  firstName: string; //ชื่อ
  lastName: string; //นามสกุล
  posNo: string; //เลขที่ตำแหน่ง
  position: string; //ตำแหน่ง
  positionLevel: string; //ระดับ
  salaries: number; //เงินเดือน
  organization: string; //สังกัด
  email: string; //อีเมล
  phone: string; //เบอร์โทรศัพท์
}

interface tableType {
  personId: string;
  idcard: string;
  prefix: string;
  firstName: string;
  lastName: string;
  position: string;
  positionLevel: string;
  organization: string;
  salary: string;
  name: string;
}

export type {
  FormData,
  FormRef,
  FormDataPost,
  typeOp,
  ResponsePreson,
  tableType,
};
