2023-06-21 14:51:08 -07:00
|
|
|
import React from 'react';
|
2022-04-10 03:46:25 -07:00
|
|
|
|
2023-06-21 14:51:08 -07:00
|
|
|
import { useAccount } from 'soapbox/api/hooks';
|
2022-04-10 03:46:25 -07:00
|
|
|
import Account from 'soapbox/components/account';
|
|
|
|
|
|
|
|
interface IAutosuggestAccount {
|
2023-02-15 13:26:27 -08:00
|
|
|
id: string
|
2022-04-10 03:46:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
const AutosuggestAccount: React.FC<IAutosuggestAccount> = ({ id }) => {
|
2023-06-21 14:51:08 -07:00
|
|
|
const { account } = useAccount(id);
|
2022-04-10 03:46:25 -07:00
|
|
|
if (!account) return null;
|
|
|
|
|
2022-11-20 10:27:30 -08:00
|
|
|
return <Account account={account} hideActions showProfileHoverCard={false} />;
|
2022-04-10 03:46:25 -07:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export default AutosuggestAccount;
|