Skip to content

Open-source, local-first AI agent for real work.

327 B
Raw Blame
import { useThemeModule } from "./context";
import type { ThemeRegionId, ThemeRegionRegistry } from "./types";

export function useThemeRegion<TKey extends ThemeRegionId>(id: TKey): ThemeRegionRegistry[TKey] | undefined {
	const theme = useThemeModule();
	return theme.regions?.[id] as ThemeRegionRegistry[TKey] | undefined;
}