[Glitch] Rewrite <Skeleton/> as FC and TS

Port 8066118d1f to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
たいち ひ
2023-05-23 15:58:08 +09:00
committed by Claire
parent 892b3c16f5
commit 6746e5d430
11 changed files with 21 additions and 20 deletions

View File

@@ -0,0 +1,12 @@
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>
);