mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
9 lines
288 B
TypeScript
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];
|
|
}
|