bigbuffet-rw/app/soapbox/features/placeholder/components/placeholder-account.tsx
2023-02-01 16:13:42 -06:00

21 lines
579 B
TypeScript

import React from 'react';
import { HStack } from 'soapbox/components/ui';
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'>
<div className='shrink-0'>
<PlaceholderAvatar size={42} />
</div>
<div className='min-w-0 flex-1'>
<PlaceholderDisplayName minLength={3} maxLength={25} />
</div>
</HStack>
);
export default PlaceholderAccount;