about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/components/skeleton.js
blob: 09093e99c757ad2a9d6f56a5427611ea9f66cb50 (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.number,
  height: PropTypes.number,
};

export default Skeleton;