Files
t3code/apps/web/src/hooks/useCustomThemes.ts
T
85b1734d4d feat(web): add modular theme library (#5226)
Co-authored-by: Claude Fable 5 <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: maria-rcks <[email protected]>
Co-authored-by: Julius Marminge <[email protected]>
2026-08-07 10:37:43 +02:00

10 lines
308 B
TypeScript

import { useSyncExternalStore } from "react";
import { getCustomThemes, subscribeToCustomThemes } from "../themePalette";
const EMPTY_CUSTOM_THEMES: readonly [] = [];
export function useCustomThemes() {
return useSyncExternalStore(subscribeToCustomThemes, getCustomThemes, () => EMPTY_CUSTOM_THEMES);
}