import { defineStore } from 'pinia';
import { ref, computed } from 'vue';
export const useTimesheetStore = defineStore('timesheet', () => {
  const current = ref<unknown>(null);
  const loading = ref(false);
  const saving = ref(false);
  const totalHours = computed(() => 0);
  function $reset() { current.value = null; loading.value = false; }
  return { current, loading, saving, totalHours, $reset };
});
