redux-devtools/packages/redux-devtools-inspector/src/RightSlider.jsx

22 lines
424 B
React
Raw Normal View History

import React from 'react';
import { PropTypes } from 'prop-types';
2019-01-10 21:51:14 +03:00
const RightSlider = ({ styling, shown, children, rotate }) => (
<div
{...styling([
'rightSlider',
shown && 'rightSliderShown',
rotate && 'rightSliderRotate',
rotate && shown && 'rightSliderRotateShown',
2019-01-10 21:51:14 +03:00
])}
>
{children}
2019-01-10 21:51:14 +03:00
</div>
);
RightSlider.propTypes = {
shown: PropTypes.bool,
};
export default RightSlider;