[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:
12
app/javascript/flavours/glitch/components/skeleton.tsx
Normal file
12
app/javascript/flavours/glitch/components/skeleton.tsx
Normal 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 }}>
|
||||
‌
|
||||
</span>
|
||||
);
|
Reference in New Issue
Block a user