import { AnyTheme } from './types'; /** * React hook that allows theme variables to be easily used within a React functional component. * This includes the basic configuration of `family`, `colorScheme` and `density`, * as well as all the specific variables available in that theme. * * If no data `SplunkThemeProvider` was configured, the Prisma Dark Compact theme is returned. * * ``` * import useSplunkTheme from '@splunk/themes/useSplunkTheme'; * ... * export function() { * const { isComfortable, focusColor } = useSplunkTheme(); * * const style = { * color: focusColor, * padding: isComfortable ? '10px' : '5px', * } * * ... * * return ( *