import React from 'react' import cx from 'classnames' 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 fullWidth?: boolean } export const ArticleGridLayout = ({ intro, topper, toc, children, className, supportPortalVaIframeProps, fullWidth, }: Props) => { const containerBoxStyles = fullWidth ? '' : styles.containerBox return (
{topper &&
{topper}
} {intro && (
{intro}
)} {toc && (
{toc}
)}
{supportPortalVaIframeProps && supportPortalVaIframeProps.supportPortalUrl && supportPortalVaIframeProps.vaFlowUrlParameter && ( )} {children}
) }