pleroma/app/soapbox/features/compose/components/autosuggest-account.tsx

19 lines
436 B
TypeScript
Raw Normal View History

import React from 'react';
import { useAccount } from 'soapbox/api/hooks';
import Account from 'soapbox/components/account';
interface IAutosuggestAccount {
id: string
}
const AutosuggestAccount: React.FC<IAutosuggestAccount> = ({ id }) => {
const { account } = useAccount(id);
if (!account) return null;
return <Account account={account} hideActions showProfileHoverCard={false} />;
};
export default AutosuggestAccount;