1 | import * as React from 'react';
|
2 | import * as PropTypes from 'prop-types';
|
3 | import { SidebarShowProps as ReakitSidebarShowProps } from 'reakit/ts';
|
4 |
|
5 | import { SidebarShow as _SidebarShow } from './styled';
|
6 |
|
7 | export type LocalSidebarShowProps = {
|
8 | children?: React.ReactNode | void;
|
9 | onClick?(): void;
|
10 | show(): void;
|
11 | };
|
12 | export type SidebarShowProps = LocalSidebarShowProps & ReakitSidebarShowProps;
|
13 |
|
14 | export const SidebarShow: React.FunctionComponent<LocalSidebarShowProps> = ({ children, ...props }) => (
|
15 | <_SidebarShow {...props}>{children}</_SidebarShow>
|
16 | );
|
17 |
|
18 | export const sidebarShowPropTypes = {
|
19 | children: PropTypes.node,
|
20 | onClick: PropTypes.func,
|
21 | show: PropTypes.func.isRequired
|
22 | };
|
23 | SidebarShow.propTypes = sidebarShowPropTypes;
|
24 |
|
25 | export const sidebarShowDefaultProps = {
|
26 | children: null,
|
27 | onClick: undefined
|
28 | };
|
29 | SidebarShow.defaultProps = sidebarShowDefaultProps;
|
30 |
|
31 |
|
32 | const C: React.FunctionComponent<SidebarShowProps> = SidebarShow;
|
33 | export default C;
|