The best way to control Claude Code, Codex and more from any computer or phone

main
ts 9 lines 308 Bytes
Raw
1 import { useSyncExternalStore } from "react";
2
3 import { getCustomThemes, subscribeToCustomThemes } from "../themePalette";
4
5 const EMPTY_CUSTOM_THEMES: readonly [] = [];
6
7 export function useCustomThemes() {
8 return useSyncExternalStore(subscribeToCustomThemes, getCustomThemes, () => EMPTY_CUSTOM_THEMES);
9 }