mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-01 14:03:52 +03:00
30 lines
560 B
TypeScript
30 lines
560 B
TypeScript
|
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;
|