2021-10-15 05:44:59 +11:00
|
|
|
import React from 'react';
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>‌</span>;
|
|
|
|
|
|
|
|
Skeleton.propTypes = {
|
2022-10-13 23:42:37 +11:00
|
|
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
|
|
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
2021-10-15 05:44:59 +11:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Skeleton;
|