import React, { PropTypes } from 'react'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import Portal from '../hoc/Portal.js'; import { DRAWER } from '../identifiers.js'; import ActivableRenderer from '../hoc/ActivableRenderer.js'; import InjectOverlay from '../overlay/Overlay.js'; const factory = (Overlay) => { const Drawer = ({ active, children, className, insideTree, onOverlayClick, theme, type, withOverlay }) => { const _className = classnames([theme.drawer, theme[type]], { [theme.active]: active }, className); const content = (