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