import React from 'react'; import { colorIndex } from '../../constants/colors/colors.types'; export type TextVariant = 'small' | 'caption' | 'body' | 'subtitle' | 'heading1' | 'heading2' | 'heading3'; export type TextElement = 'h1' | 'h2' | 'h3' | 'p' | 'p' | 'caption' | 'small' | 'span'; export interface TextProps { variant?: TextVariant; weight?: 'regular' | 'bold' | 'semibold'; strikeThrough?: boolean; color?: colorIndex; as?: TextElement; children: React.ReactNode; width?: string; lineClamp?: number; id?: string; } export type VariantMappingType = { [key in TextVariant]: TextElement; };