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

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

    return {
        canCreate: can(PERMISSIONS.coinAdjustmentCreate),
        canView: can(PERMISSIONS.coinAdjustmentView),
    };
}

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

    return {
        canUpdate: can(PERMISSIONS.giftDiamondUpdate),
        canView: can(PERMISSIONS.giftDiamondView),
    };
}

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

    return {
        canUpdate: can(PERMISSIONS.wheelUpdate),
        canView: can(PERMISSIONS.wheelView),
    };
}
