import { defineStore } from "pinia";
import { ref } from "vue";

import type { DataOption } from "@/modules/02_users/interface/index/Main";

export const useDataStoreUser = defineStore("storeDataUser", () => {
  const searchFieldOption = ref<DataOption[]>([
    {
      name: "ชื่อ-นามสกุล",
      id: "fullName",
    },
    {
      name: "เลขที่ตำแหน่ง",
      id: "posNo",
    },

    {
      name: "ตำแหน่งในสายงาน",
      id: "position",
    },
    {
      name: "ประเภทตำแหน่ง",
      id: "postype",
    },
    {
      name: "ระดับตำแหน่ง",
      id: "poslevel",
    },
  ]);
  return {
    searchFieldOption,
  };
});
