// import FP from '../fp' import React from 'react' import UI from '#components/ui' type InheritedProps = React.ComponentProps type TextElements = | 'a' | 'b' | 'blockquote' | 'b' | 'blockquote' | 'cite' | 'code' | 'em' | 'i' | 'em' | 'i' | 'kbd' | 'mark' | 'p' | 's' | 'small' | 'span' | 'span' | 'strong' | 'mark' | 'p' | 's' | 'small' | 'span' | 'span' | 'strong' | 'sub' | 'sup' | 'time' | 'time' | 'u' export type TextProps = { /** * Text element to to use * Text element to to use */ elm?: TextElements /** Pass a text element or string */ text?: string } & InheritedProps export const Text = ({ elm = 'p', id, text, styles, classes, children, ...props }: TextProps) => { return ( {children || text} ) } type TitleProps = { /** * HTML headings */ elm?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' } & InheritedProps export const Title = ({ elm = 'h3', id, children, styles, classes, ...props }: TitleProps) => { return ( {children} ) } export default Text Text.displayName = 'Text' Title.displayName = 'Title'