export type PortfolioPrivilege =
  | "creator"
  | "admin"
  | "domna"
  | "write"
  | "read"
  | "none";

export function isDomnaEmail(email: string): boolean {
  return email.toLowerCase().endsWith("@domna.homes");
}

export function canAdminister(privilege: PortfolioPrivilege): boolean {
  return (
    privilege === "creator" ||
    privilege === "admin" ||
    privilege === "domna"
  );
}
