2022-05-01 10:53:53 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
2022-12-25 15:52:06 -08:00
|
|
|
import { HStack } from 'soapbox/components/ui';
|
|
|
|
|
2022-11-15 11:00:40 -08:00
|
|
|
import PlaceholderAvatar from './placeholder-avatar';
|
|
|
|
import PlaceholderDisplayName from './placeholder-display-name';
|
2022-05-01 10:53:53 -07:00
|
|
|
|
|
|
|
/** Fake account to display while data is loading. */
|
2022-12-25 15:52:06 -08:00
|
|
|
const PlaceholderAccount: React.FC = () => (
|
|
|
|
<HStack space={3} alignItems='center'>
|
2023-02-01 14:13:42 -08:00
|
|
|
<div className='shrink-0'>
|
2022-12-25 15:52:06 -08:00
|
|
|
<PlaceholderAvatar size={42} />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className='min-w-0 flex-1'>
|
|
|
|
<PlaceholderDisplayName minLength={3} maxLength={25} />
|
2022-05-01 10:53:53 -07:00
|
|
|
</div>
|
2022-12-25 15:52:06 -08:00
|
|
|
</HStack>
|
|
|
|
);
|
2022-05-01 10:53:53 -07:00
|
|
|
|
2023-04-04 05:11:03 -07:00
|
|
|
export default React.memo(PlaceholderAccount);
|