import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCalendar } from "@fortawesome/free-solid-svg-icons"; import { MDXProvider } from "@mdx-js/react"; import React, { PropsWithChildren } from "react"; import Base from "../pages/LayoutBase"; interface BlogProps { title: string; description: string; published: string; updated?: string; } const components = { pre: (props: any) =>
,
};

export default function Layout({
  title,
  description,
  published,
  updated,
}: BlogProps): React.FC {
  const header = (
    

{title}

{description}

{published}

{updated &&

Last updated: {updated}

}
); const withChildren: React.FC = ({ children }) => ( {header}
{children} ); return withChildren; }