import React from 'react'; import { Text as TextPrimitive, TextProps as TextPropsPrimitive } from '@modulz/primitives'; export type TextProps = TextPropsPrimitive & { variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'large' | 'small'; } type ExtractRefType = TypesThatMayContainReactRef extends {ref?: React.Ref} ? T : any; type PrimitiveRefType = ExtractRefType export const Text = React.forwardRef((props, ref) => { return ( ); });