import React from 'react' import cx from 'classnames' import { Box } from '@primer/react' import { SupportPortalVaIframe, SupportPortalVaIframeProps } from './SupportPortalVaIframe' import styles from './ArticleGridLayout.module.scss' type Props = { intro?: React.ReactNode topper?: React.ReactNode toc?: React.ReactNode children?: React.ReactNode className?: string supportPortalVaIframeProps?: SupportPortalVaIframeProps } export const ArticleGridLayout = ({ intro, topper, toc, children, className, supportPortalVaIframeProps, }: Props) => { return ( {topper && {topper}} {toc && ( {toc} )} {intro && ( {intro} )} {supportPortalVaIframeProps && supportPortalVaIframeProps.supportPortalUrl && supportPortalVaIframeProps.vaFlowUrlParameter && ( )} {children} ) }