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

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

    return {
        canUpdate: can(PERMISSIONS.redPacketUpdate),
        canView: can(PERMISSIONS.redPacketView),
    };
}
