mirror of
https://github.com/wassname/talk.git
synced 2026-07-15 11:26:58 +08:00
16 lines
328 B
JavaScript
16 lines
328 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { Card } from 'coral-ui';
|
|
|
|
const EmptyCard = props => (
|
|
<Card style={{ textAlign: 'center', maxWidth: 400, margin: '0 auto' }}>
|
|
{props.children}
|
|
</Card>
|
|
);
|
|
|
|
EmptyCard.propTypes = {
|
|
children: PropTypes.node.isRequired,
|
|
};
|
|
|
|
export default EmptyCard;
|