2022-11-25 09:04:11 -08:00
|
|
|
import React from 'react';
|
|
|
|
import { HStack } from 'soapbox/components/ui';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-11-15 11:00:40 -08:00
|
|
|
import PlaceholderAvatar from './placeholder-avatar';
|
|
|
|
import PlaceholderDisplayName from './placeholder-display-name';
|
|
|
|
import PlaceholderStatusContent from './placeholder-status-content';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2022-05-01 10:53:53 -07:00
|
|
|
/** Fake notification to display while data is loading. */
|
2022-03-21 11:09:01 -07:00
|
|
|
const PlaceholderNotification = () => (
|
2022-07-22 10:30:16 -07:00
|
|
|
<div className='bg-white dark:bg-primary-900 px-4 py-6 sm:p-6'>
|
2022-03-21 11:09:01 -07:00
|
|
|
<div className='w-full animate-pulse'>
|
|
|
|
<div className='mb-2'>
|
|
|
|
<PlaceholderStatusContent minLength={20} maxLength={20} />
|
|
|
|
</div>
|
2021-10-12 12:00:01 -07:00
|
|
|
|
2022-03-21 11:09:01 -07:00
|
|
|
<div>
|
2022-11-25 09:04:11 -08:00
|
|
|
<HStack space={3} alignItems='center'>
|
2022-03-21 11:09:01 -07:00
|
|
|
<div className='flex-shrink-0'>
|
|
|
|
<PlaceholderAvatar size={48} />
|
|
|
|
</div>
|
2021-10-12 12:00:01 -07:00
|
|
|
|
2022-03-21 11:09:01 -07:00
|
|
|
<div className='min-w-0 flex-1'>
|
|
|
|
<PlaceholderDisplayName minLength={3} maxLength={25} />
|
|
|
|
</div>
|
2022-11-25 09:04:11 -08:00
|
|
|
</HStack>
|
2022-03-21 11:09:01 -07:00
|
|
|
</div>
|
2021-10-12 12:00:01 -07:00
|
|
|
|
2022-03-21 11:09:01 -07:00
|
|
|
<div className='mt-4'>
|
|
|
|
<PlaceholderStatusContent minLength={5} maxLength={120} />
|
2021-10-12 12:00:01 -07:00
|
|
|
</div>
|
2022-03-21 11:09:01 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
2021-10-12 12:00:01 -07:00
|
|
|
|
2022-03-21 11:09:01 -07:00
|
|
|
export default React.memo(PlaceholderNotification);
|