[examples/openspending][m] - fix build

This commit is contained in:
Luccas Mateus de Medeiros Gomes
2023-05-30 09:11:46 -03:00
parent b0b9631c8d
commit d6c130e1c6
5 changed files with 0 additions and 112 deletions

View File

@@ -1,17 +0,0 @@
import { MDXRemote } from 'next-mdx-remote';
import layouts from '../layouts';
export default function MDXPage({ source, frontMatter }) {
const Layout = ({ children }) => {
const layoutName = frontMatter?.layout || 'default';
const LayoutComponent = layouts[layoutName];
return <LayoutComponent {...frontMatter}>{children}</LayoutComponent>;
};
return (
<Layout>
<MDXRemote {...source} components={[]} />
</Layout>
);
}