bigbuffet-rw/app/soapbox/features/placeholder/components/placeholder-account.tsx

22 lines
591 B
TypeScript
Raw Normal View History

import React from 'react';
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';
/** Fake account to display while data is loading. */
const PlaceholderAccount: React.FC = () => (
<HStack space={3} alignItems='center'>
2023-02-01 14:13:42 -08:00
<div className='shrink-0'>
<PlaceholderAvatar size={42} />
</div>
<div className='min-w-0 flex-1'>
<PlaceholderDisplayName minLength={3} maxLength={25} />
</div>
</HStack>
);
export default React.memo(PlaceholderAccount);