import React, { Fragment, useMemo, useRef, useEffect } from "react" import PlainCode, { type PlainCodeProps } from './PlainCode'; import ErrorBoundary from "./ErrorBoundary" import { useTypedLocalStorage } from "./useLocalStorage"; import ButtonGroup from "./ButtonGroup"; import EditorFetch from '@site/src/components/Schema/SchemaEditorFetch'; import {useWindowSize} from './theme'; export interface FileProps extends Omit { /** * The plain code block is rendered at build time next to this island (inside a `.file-example` wrapper) * instead of by React. The island only toggles `data-mode` on the wrapper. * (Island children can't be used: Starlight's drops