import { useAuth } from "@/app/auth/AuthProvider.jsx";
import { PERMISSIONS } from "@/app/permissions";

export function useGameAbilities() {
    const { can } = useAuth();

    return {
        canCreate: can(PERMISSIONS.gameCreate),
        canDelete: can(PERMISSIONS.gameDelete) || can(PERMISSIONS.gameUpdate),
        canStatus: can(PERMISSIONS.gameStatus),
        canUpdate: can(PERMISSIONS.gameUpdate),
        canUpload: can(PERMISSIONS.uploadCreate),
        canView: can(PERMISSIONS.gameView),
    };
}
