redux-devtools/packages/redux-devtools-inspector-monitor/src/RightSlider.tsx

30 lines
560 B
TypeScript
Raw Normal View History

import React, { FunctionComponent } from 'react';
import { StylingFunction } from 'react-base16-styling';
interface Props {
styling: StylingFunction;
shown?: boolean;
children: React.ReactNode;
rotate?: boolean;
}
const RightSlider: FunctionComponent<Props> = ({
styling,
shown,
children,
rotate,
}) => (
<div
{...styling([
'rightSlider',
shown && 'rightSliderShown',
rotate && 'rightSliderRotate',
rotate && shown && 'rightSliderRotateShown',
])}
>
{children}
</div>
);
export default RightSlider;