bigbuffet-rw/app/soapbox/features/placeholder/components/placeholder-chat.tsx
marcin mikołajczak b8542c619d Improve chats styles and chat placeholder
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-11-26 20:03:17 +01:00

23 lines
637 B
TypeScript

import React from 'react';
import { HStack, Stack } from 'soapbox/components/ui';
import PlaceholderAvatar from './placeholder-avatar';
import PlaceholderDisplayName from './placeholder-display-name';
/** Fake chat to display while data is loading. */
const PlaceholderChat = () => {
return (
<div className='px-4 py-2 w-full flex flex-col animate-pulse'>
<HStack alignItems='center' space={2}>
<PlaceholderAvatar size={40} />
<Stack alignItems='start'>
<PlaceholderDisplayName minLength={3} maxLength={15} />
</Stack>
</HStack>
</div>
);
};
export default PlaceholderChat;