// // puts a block right in the center of the window // import React from 'react' import PropTypes from 'prop-types' const Center = props => (
{props.children}
) Center.defaultProps = { width: null, direction: 'both' } Center.propTypes = { children: PropTypes.oneOfType([ PropTypes.element, PropTypes.arrayOf( PropTypes.element ) ]) } export default Center