catstodon/app/javascript/mastodon/components/skeleton.tsx
2023-05-23 08:58:08 +02:00

12 lines
250 B
TypeScript

import React from 'react';
interface Props {
width?: number | string;
height?: number | string;
}
export const Skeleton: React.FC<Props> = ({ width, height }) => (
<span className='skeleton' style={{ width, height }}>
&zwnj;
</span>
);