@nanocollective/nanocoder
Version:
A local-first CLI coding agent that brings the power of agentic coding tools like Claude Code and Gemini CLI to local models or controlled APIs like OpenRouter
10 lines • 332 B
JavaScript
import { createContext, useContext } from 'react';
export const ThemeContext = createContext(null);
export function useTheme() {
const context = useContext(ThemeContext);
if (!context) {
throw new Error('useTheme must be used within a ThemeProvider');
}
return context;
}
//# sourceMappingURL=useTheme.js.map