import type { AddonTypeSchema } from 'openapi'; import type { VFC } from 'react'; import { StyledRaisedSection } from '../IntegrationForm/IntegrationForm.styles'; import { Typography, styled } from '@mui/material'; import { IntegrationIcon } from '../IntegrationList/IntegrationIcon/IntegrationIcon'; import { Markdown } from 'component/common/Markdown/Markdown'; const StyledHowDoesItWorkSection = styled(StyledRaisedSection)(({ theme }) => ({ fontSize: theme.fontSizes.smallBody, gap: theme.spacing(1.5), })); interface IIntegrationHowToSectionProps { provider?: Pick; title?: string; } export const IntegrationHowToSection: VFC = ({ provider, title = 'How does it work?', }) => { if (!provider?.name || !provider?.howTo) return null; return ( ({ display: 'flex', alignItems: 'center', marginBottom: theme.spacing(1), })} > {title} {provider!.howTo || ''} ); };