import React from 'react' ; import { GlobalStyle } from '@sberdevices/plasma-docs-ui' ; import useThemeContext from '@theme/hooks/useThemeContext' ; import BaseLayoutHead from '@docusaurus/theme-classic/lib-next/theme/LayoutHead' ; export default function LayoutHead ( props ) { const { isDarkTheme } = useThemeContext ( ) ; return ( < > { } < BaseLayoutHead { ... props } /> < GlobalStyle theme = { isDarkTheme ? 'dark' : 'light' } / > < />); }