Initial commit - EENE Dashboard

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
EENE Dashboard
2026-05-29 18:07:10 +09:00
commit 22366dde72
64 changed files with 10483 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { useQuery } from '@tanstack/react-query';
import { apiClient } from '../lib/apiClient';
import type { Task } from '../types';
interface TasksParams {
quarter?: string;
section?: string;
taskType?: string;
}
export function useTasks(params?: TasksParams) {
return useQuery({
queryKey: ['tasks', params],
queryFn: async () => {
const { data } = await apiClient.get<Task[]>('/tasks', { params });
return data;
},
refetchInterval: 30_000,
});
}