import React from 'react' import cx from 'classnames' import styles from './ArticleGridLayout.module.scss' type Props = { head?: React.ReactNode toc?: React.ReactNode children?: React.ReactNode className?: string } export const ArticleGridLayout = ({ head, toc, children, className }: Props) => { return (
{/* head */} {head &&
{head}
} {/* toc */} {toc && (
{toc}
)} {/* content */} {/* NOTE: The article-grid-body class is used by the LUNR search scripts. If this class changes, please also change updating script/search/parse-page-sections-into-records.js. */}
{children}
) }