export interface TableResponseTypes<T> {
  status: boolean;
  count: number;
  data: T[];
}

export interface TableParamsTypes {
  limit: number;
  page: number;
}

export interface ActionResponseTypes {
  status: boolean;
  message: string;
}

export interface ActionMenuReponseTypes {
  status: boolean;
  message: string;
  data?: {
    role_name: string;
    roles_list: RoleList[];
    token: string;
  } | null;
}

export interface RoleList {
  children?: RoleList[];
  icon: string;
  id: string;
  id_parent: string;
  link: string;
  module: string;
  name: string;
  order_number: number;
}
export interface MappedMenu {
  title: string;
  path?: string;
  children?: MappedMenu[];
}
// export interface ChildrenRole {
//   icon: string;
//   id: string;
//   id_parent: string;
//   link: string;
//   module: string;
//   name: string;
//   order_number: number;
// }
