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

export function useAgencyOpeningAbilities() {
    const { can } = useAuth();
    return {
        canCreate: can(PERMISSIONS.agencyOpeningCreate),
        canUpdate: can(PERMISSIONS.agencyOpeningUpdate),
        canView: can(PERMISSIONS.agencyOpeningView),
    };
}
