ohif-viewer/platform/ui/src/components/Table/Table.jsx
2020-05-15 12:39:00 +01:00

42 lines
732 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const Table = ({ children, className, fullWidth, style }) => {
const classes = {
base: 'text-lg text-white',
fullWidth: {
true: 'w-full',
false: '',
},
};
return (
<div
className={classnames(
classes.base,
classes.fullWidth[fullWidth],
className
)}
style={style}
>
{children}
</div>
);
};
Table.defaultProps = {
className: '',
fullWidth: true,
style: {},
};
Table.propTypes = {
fullWidth: PropTypes.bool,
children: PropTypes.node.isRequired,
className: PropTypes.string,
style: PropTypes.object,
};
export default Table;