pleroma/app/soapbox/features/placeholder/components/placeholder_notification.js
marcin mikołajczak 9022651a67 Styles, dark mode
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-03-30 15:07:17 +02:00

33 lines
991 B
JavaScript

import * as React from 'react';
import PlaceholderAvatar from './placeholder_avatar';
import PlaceholderDisplayName from './placeholder_display_name';
import PlaceholderStatusContent from './placeholder_status_content';
const PlaceholderNotification = () => (
<div className='bg-white dark:bg-slate-800 px-4 py-6 sm:p-6'>
<div className='w-full animate-pulse'>
<div className='mb-2'>
<PlaceholderStatusContent minLength={20} maxLength={20} />
</div>
<div>
<div className='flex space-x-3 items-center'>
<div className='flex-shrink-0'>
<PlaceholderAvatar size={48} />
</div>
<div className='min-w-0 flex-1'>
<PlaceholderDisplayName minLength={3} maxLength={25} />
</div>
</div>
</div>
<div className='mt-4'>
<PlaceholderStatusContent minLength={5} maxLength={120} />
</div>
</div>
</div>
);
export default React.memo(PlaceholderNotification);