import "./src/styles/main.css";
import React from "react";
import { MDXProvider } from "@mdx-js/react";
const SpoilerComponent = ({ children }) => {
const [show, setShow] = React.useState(false);
return (
{if (e.target.classList.contains("spoiler-label")) setShow(!show) }}>
{children}
);
};
const components = {
wrapper: ({ excerptOnly = false, children }) => {
if (excerptOnly) {
for (let child of children) {
if (child.props.originalType === "module-excerpt") return child;
}
return null;
}
return children;
},
"module-excerpt": (props) => ,
details: SpoilerComponent,
summary: ({ children }) => (
{children}
),
"info-block": ({ children }) => (
),
};
export const wrapRootElement = ({ element }) => (
{element}
);