import { useContext } from 'react' ; import { ThemeContext } from 'styled-components' ; import { EuiTheme } from '../../../../../src/plugins/kibana_react/common' ; export function useTheme ( ) { const theme = useContext ( ThemeContext ) ; return theme ; }