about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components/skeleton.jsx
blob: 6a17ffb261ef16a5d7262bc450f8969959e0bf58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import React from 'react';
import PropTypes from 'prop-types';

const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>&zwnj;</span>;

Skeleton.propTypes = {
  width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
  height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
};

export default Skeleton;