Files
v10/packages/sandbox/app/utils/use-skin-switcher.ts
T
2026-03-11 14:02:12 +11:00

9 lines
288 B
TypeScript

import type { Skin } from '@app/types';
import { skinStore } from './stores';
import { useExternalStore } from './use-external-store';
export function useSkinSwitcher(): [Skin, (value: Skin) => void] {
const value = useExternalStore(skinStore);
return [value, skinStore.setValue];
}