export type SharedStoreType = {
  openSidebar: boolean;
  setOpenSidebar: (value: boolean) => void;

  isLogin: boolean;
  setIsLogin: (value: boolean) => void;
};

export interface ApiResponse<T> {
  statusCode: number;
  success: boolean;
  data: T;
}

export type UserMeResponseType = ApiResponse<{
  user: {
    id: string;
    createdAt: string;
    updatedAt: string;
    firstName: string;
    lastName: string;
    email: string;
    emailVerified: boolean;
    phone: string;
    birthDate: string;
    nationalCode: string;
    financialType: string;
    profilePic: string | null;
    userName: string | null;
    roles: Array<{
      id: string;
      createdAt: string;
      name: string;
      // Add other role properties as needed
    }>;
  };
}>;
