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 = ( { children , ... props } ) => ( < _Text use = "span" { ... props } > { children } < /_Text>); 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 ; const C = Text ; export default C ;