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

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

    return {
        canCreate: can(PERMISSIONS.dailyTaskCreate),
        canStatus: can(PERMISSIONS.dailyTaskStatus),
        canUpdate: can(PERMISSIONS.dailyTaskUpdate),
        canUpload: can(PERMISSIONS.uploadCreate),
        canView: can(PERMISSIONS.dailyTaskView),
    };
}
