feat: start of monorepo

This commit is contained in:
TrèsAbhi committed 2024-09-06 21:45:58 -05:00
1 parent 14f39d71ac
commit 73c7bdf0c0
260 files changed
+1236 -1235

No files matched your search

@@ -0,0 +1,21 @@
'use client';
import { create } from 'zustand';
import { createNextSafeStore } from '../core/zustand/createNextSafeStore';
import {
TankopediaSortBy,
TankopediaSortDirection,
} from './tankopediaPersistent';
export interface TankopediaSort {
by: TankopediaSortBy;
direction: TankopediaSortDirection;
}
export const { Provider, use, useMutation, useStore } = createNextSafeStore(
() =>
create<TankopediaSort>()(() => ({
by: 'meta.none',
direction: 'descending',
})),
);