main
js 23 lines 497 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @flow
8 */
9
10 import * as React from 'react';
11
12 import styles from './Skeleton.css';
13
14 type Props = {
15 height: number | string,
16 width: number | string,
17 };
18
19 function Skeleton({height, width}: Props): React.Node {
20 return <div className={styles.root} style={{height, width}} />;
21 }
22
23 export default Skeleton;