import style from "!raw-loader!react-day-picker/src/style.css"; import { useColorMode } from "@docusaurus/theme-common"; import root from "react-shadow"; export function ShadowDomWrapper({ children, styleStr, }: { children: React.ReactNode; styleStr: string | undefined; }) { const { colorMode } = useColorMode(); return ( {children} {colorMode === "dark" && ( )} {styleStr && } ); }