import React, { useCallback } from 'react'; import { HStack, Icon, Text } from 'soapbox/components/ui'; import { useAppSelector } from 'soapbox/hooks'; import { makeGetStatus } from 'soapbox/selectors'; interface IQuotedStatusIndicator { /** The quoted status id. */ statusId: string; } const QuotedStatusIndicator: React.FC = ({ statusId }) => { const getStatus = useCallback(makeGetStatus(), []); const status = useAppSelector(state => getStatus(state, { id: statusId })); if (!status) return null; return ( {status.url} ); }; export default QuotedStatusIndicator;