Files
lti-web-client/src/stores/dashboard/dashboard.store.ts
T
2026-01-18 19:30:54 +07:00

25 lines
584 B
TypeScript

'use client';
import { create } from 'zustand';
import { devtools, persist } from 'zustand/middleware';
import { createDashboardFilterSlice } from '@/stores/dashboard/slices/dashboard-filter.slice';
import { DashboardFilterSlice } from '@/types/stores';
export type DashboardStore = DashboardFilterSlice;
export const useDashboardStore = create<DashboardStore>()(
devtools(
persist(
(...args) => ({
...createDashboardFilterSlice(...args),
}),
{
name: 'dashboard-filter-cache',
}
),
{
name: 'DashboardStore',
}
)
);