2021-10-14 20:44:59 +02: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 14:42:37 +02:00
|
|
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
|
|
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
2021-10-14 20:44:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Skeleton;
|