export type TeamMember = {
    id: number;
    name: string;
    email: string;
    role: string;
    joined_at: string;
    status: 'active';
    workspace_user_id: number;
    updateRoleUrl: string;
    removeUrl: string;
    permissions?: Record<string, boolean>;
    permissionsUrl?: string;
};

export type TeamInvitation = {
    id: number;
    email: string;
    role: string;
    invited_at: string;
    status: 'pending';
};

export type TeamPageProps = {
    members: TeamMember[];
    pendingInvitations: TeamInvitation[];
    canManageTeam: boolean;
    isOwner: boolean;
    availablePermissions: Record<string, string>;
    authUserId: number;
    inviteUrl: string;
    roles: Record<string, string>;
};
