mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-28 03:49:37 +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);
|
|
}
|