This repository has been archived on 2025-09-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
repertory-ui/src/components/UI/Box/Box.js
2019-04-09 12:18:57 -05:00

28 lines
539 B
JavaScript

import React from 'react';
import './Box.css';
export default props => {
const styleList = [];
styleList.push('Box');
if (props.dxDark) {
styleList.push('Darker');
}
if (props.dxSlideOut) {
styleList.push('SlideOut');
} else if (props.dxFadeIn) {
styleList.push('FadeIn');
} else if (props.dxSlideOutTop) {
styleList.push('SlideOutTop');
}
return (
<div
onClick={props.clicked}
className={styleList.join(' ')}
style={{...props.dxStyle}}>
{props.children}
</div>
);
};