import type { FC } from 'react'; import { FormattedMessage } from 'react-intl'; import type { Relationship } from '@/mastodon/models/relationship'; export const AccountInfo: FC<{ relationship?: Relationship }> = ({ relationship, }) => { if (!relationship) { return null; } return (
{(relationship.followed_by || relationship.requested_by) && ( )} {relationship.blocking && ( )} {relationship.muting && ( )} {relationship.domain_blocking && ( )}
); }; const AccountInfoFollower: FC<{ relationship: Relationship }> = ({ relationship, }) => { if ( relationship.followed_by && (relationship.following || relationship.requested) ) { return ( ); } else if (relationship.followed_by) { return ( ); } else if (relationship.requested_by) { return ( ); } return null; };