type AccountType = {
    id: number;
    customer: {
        id: number;
        name: string;
        surname: string;
        address: string;
        country: string;
        zip: string;
    };
    password: string;
    langI18n: string;
    admin: boolean;
    email: string;
};

export default AccountType;

export type CustomerType =
{
  id: number;
  name: string;
  surname: string;
  address: string;
  country: string;
  zip: string;
}

export type SubmitLogin = {
    email: string;
    password: string;
};

export type SubmitLoginSession = {
  email: string;
  session: string;
};

export type User = {
  password: string;
  email: string;
  customerId: number;
  session: string;
  // weitere Felder nach Bedarf
};

export type AccountContextType = {
  user: User | null;
  login: (userData: User) => void;
  logout: () => void;
};