import React, { ElementRef, forwardRef } from 'react' import { ComponentProps } from '@stitches/react' import { styled } from '~/theme' import { BaseTextStyles, BaseFontVariants } from './styles' import { FontWeight, FontColor } from './types' const StyledTitle = styled('h1', { ...BaseTextStyles, variants: { ...BaseFontVariants, size: { small: { fontSize: '$xl', lineHeight: '$xl', }, normal: { fontSize: '$xxl', lineHeight: '$xxl', }, }, }, }) type TitleSize = 'small' | 'normal' export interface TitleProps extends ComponentProps { size?: TitleSize weight?: FontWeight color?: FontColor } export const Title = forwardRef, TitleProps>( (properties, forwardedRef) => { const { size = 'normal', weight = 'bold', color = 'Primary', ...remainingProps } = properties return ( ) } ) Title.displayName = 'Title'