import { Box, Image, Stack } from '@chakra-ui/react'; import { FC } from 'react'; interface Props { children: React.ReactNode; id: string; imgSrc?: string; imgAltText?: string; sectionTitle: string; } export const DownloadsSection: FC = ({ children, imgSrc, imgAltText, sectionTitle, id }) => { return ( {!!imgSrc && ( {/* TODO: use NextImage */} {imgAltText} )} {sectionTitle} {children} ); };