wifi-densepose/ui/mobile/src/hooks/useTheme.ts

5 lines
185 B
TypeScript

import { useContext } from 'react';
import { ThemeContext, ThemeContextValue } from '../theme/ThemeContext';
export const useTheme = (): ThemeContextValue => useContext(ThemeContext);