import * as React from 'react' import { useTranslation } from 'react-i18next' import { DIRECTION_COLUMN, Flex, SPACING, StyledText, TYPOGRAPHY, } from '@opentrons/components' import { Banner } from '../../../../atoms/Banner' export const UnMatchedModuleWarning = (): JSX.Element | null => { const { t } = useTranslation('protocol_setup') const [showBanner, setShowBanner] = React.useState(true) if (!showBanner) return null return ( setShowBanner(false)} > {t('extra_module_attached')} {`${t('module_mismatch_body')}.`} ) }