UNPKG

@frank-auth/react

Version:

Flexible and customizable React UI components for Frank Authentication

15 lines (14 loc) 305 B
import { createContext as t, useContext as o } from "react"; const r = t( void 0 ), s = () => { const e = o(r); if (e === void 0) throw new Error("useTheme must be used within a ThemeProvider"); return e; }; export { r as ThemeContext, s as useTheme }; //# sourceMappingURL=context.js.map