import React from 'react' //HACK: worked around missing Teaser type by declaring a module x-teaser.d.ts import { presets, Teaser } from '@financial-times/x-teaser' import { ContentProps } from '../../types' import type * as ComponentWorkarounds from '../Workarounds' // Renders a Recommended teaser component // `` is imported from x-dash // https://github.com/Financial-Times/x-dash/tree/main/components/x-teaser) interface RecommendedProps extends ContentProps {} const Recommended: React.FC = ({ content: { heading, teaser }, }) => { if (!teaser) { return null } return ( ) } export default Recommended