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