mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-12-05 20:39:04 +01:00
b8cbaba283
Partial port of b8a2430642
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
33 lines
793 B
TypeScript
33 lines
793 B
TypeScript
import React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import { DisplayName } from 'flavours/glitch/components/display_name';
|
|
import { Skeleton } from 'flavours/glitch/components/skeleton';
|
|
|
|
interface Props {
|
|
size?: number;
|
|
minimal?: boolean;
|
|
}
|
|
|
|
export const EmptyAccount: React.FC<Props> = ({
|
|
size = 46,
|
|
minimal = false,
|
|
}) => {
|
|
return (
|
|
<div className={classNames('account', { 'account--minimal': minimal })}>
|
|
<div className='account__wrapper'>
|
|
<div className='account__display-name'>
|
|
<div className='account__avatar-wrapper'>
|
|
<Skeleton width={size} height={size} />
|
|
</div>
|
|
|
|
<div>
|
|
<DisplayName />
|
|
<Skeleton width='7ch' />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|