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

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

    return {
        canView: can(PERMISSIONS.cpConfigView),
        canUpdate: can(PERMISSIONS.cpConfigUpdate),
    };
}
