import React from 'react'; import { FormattedMessage } from 'react-intl'; import { Stack, HStack, Card, Avatar, Text, Icon } from 'soapbox/components/ui'; import { useAppSelector } from 'soapbox/hooks'; import type { Card as CardEntity } from 'soapbox/types/entities'; interface IAd { card: CardEntity, } /** Displays an ad in sponsored post format. */ const Ad: React.FC = ({ card }) => { const instance = useAppSelector(state => state.instance); return ( {instance.title} {card.image && ( )} ); }; export default Ad;