import * as React from 'react'; import * as PropTypes from 'prop-types'; import { BoxProps as ReakitBoxProps } from 'reakit/ts/Box/Box'; import _Text from './styled'; export type LocalTextProps = { className?: string; children?: React.ReactNode; color?: string; }; export type TextProps = ReakitBoxProps & LocalTextProps; export const Text: React.FunctionComponent = ({ children, ...props }) => ( <_Text use="span" {...props}> {children} ); export const textPropTypes = { className: PropTypes.string, children: PropTypes.node, color: PropTypes.string }; Text.propTypes = textPropTypes; export const textDefaultProps = { className: undefined, children: undefined, color: undefined }; Text.defaultProps = textDefaultProps; // @ts-ignore const C: React.FunctionComponent = Text; export default C;