joyent-portal/ui/src/components/topology/view.js
2017-01-12 19:04:52 +00:00

34 lines
607 B
JavaScript

const constants = require('../../shared/constants');
const fns = require('../../shared/functions');
const React = require('react');
const Styled = require('styled-components');
const {
colors
} = constants;
const {
remcalc
} = fns;
const {
default: styled
} = Styled;
const TopologyView = styled.div`
border: ${remcalc(1)} solid ${colors.borderSecondary};
background-color: ${colors.brandSecondary};
`;
const Topology = (props) => (
<TopologyView {...props}>
{props.children}
</TopologyView>
);
Topology.propTypes = {
children: React.PropTypes.node,
};
module.exports = Topology;