import React from 'react'; import { useHistory } from 'react-router-dom'; import { Avatar, Button, CardTitle, Stack } from 'soapbox/components/ui'; import { type Card as StatusCard } from 'soapbox/types/entities'; interface IGroupLinkPreview { card: StatusCard } const GroupLinkPreview: React.FC = ({ card }) => { const history = useHistory(); const { group } = card; if (!group) return null; const navigateToGroup = () => history.push(`/groups/${group.id}`); return (
} /> ); }; export { GroupLinkPreview };