import { AddressAllEndpoints } from "./pageInfo";
import { PeoplePageInfo } from "../people/pageInfo";

const AddressSubCategories = [
  {
    title: {
      tr: "Posta Kodları",
      en: "Postcodes",
    },
    icon: "Container",
    component: null,
    selfEndpoints: ["/postcode/list", "/postcode/create", "/postcode/update"],
    allEndpoints: [],
    subCategories: [],
  },
  {
    title: {
      tr: "Adres Arama",
      en: "Address Search",
    },
    icon: "ScanSearch",
    component: null,
    selfEndpoints: ["/address/search", "/address/list"],
    allEndpoints: [],
    subCategories: [],
  },
];

const IdentityCategories = [
  {
    title: {
      tr: "Kullanıcılar",
      en: "Users",
    },
    icon: "UserPlus",
    component: null,
    selfEndpoints: [
      "/users/list",
      "/users/create",
      "/users/update/{user_uu_id}",
    ],
    allEndpoints: [],
    subCategories: [],
  },
  {
    title: {
      tr: "İnsanlar",
      en: "People",
    },
    icon: "PersonStanding",
    component: "PeoplePage",
    pageInfo: PeoplePageInfo,
    allEndpoints: [],
    subCategories: [],
  },
  {
    title: {
      tr: "Adresler",
      en: "Addresses",
    },
    icon: "MapPinned",
    component: null,
    selfEndpoints: ["/address/list", "/address/create", "/address/update"],
    allEndpoints: AddressAllEndpoints,
    subCategories: AddressSubCategories,
  },
];

export { IdentityCategories };
