mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-29 12:30:07 +00:00
11 lines
288 B
TypeScript
11 lines
288 B
TypeScript
![]() |
import React, { useContext } from 'react';
|
||
|
|
||
|
export const CustomThemeContext = React.createContext<{
|
||
|
theme: any;
|
||
|
updateTheme: (theme: any) => void;
|
||
|
}>({ theme: undefined, updateTheme: (_) => null });
|
||
|
|
||
|
export function useCustomTheme() {
|
||
|
return useContext(CustomThemeContext);
|
||
|
}
|