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 */}
{children}
) }