2018-12-22 03:10:49 +03:00
|
|
|
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',
|
2020-08-08 23:26:39 +03:00
|
|
|
rotate && shown && 'rightSliderRotateShown',
|
2019-01-10 21:51:14 +03:00
|
|
|
])}
|
|
|
|
>
|
2018-12-22 03:10:49 +03:00
|
|
|
{children}
|
2019-01-10 21:51:14 +03:00
|
|
|
</div>
|
|
|
|
);
|
2018-12-22 03:10:49 +03:00
|
|
|
|
|
|
|
RightSlider.propTypes = {
|
2020-08-08 23:26:39 +03:00
|
|
|
shown: PropTypes.bool,
|
2018-12-22 03:10:49 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
export default RightSlider;
|