import React, { FC, memo } from 'react'; import { cn } from '../../util/bem'; import { SizeType, TextColorType } from '../../util/global-props'; import './description.component.scss'; export type DescriptionPropsType = { className?: string; children: React.ReactNode; size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl' | 'lx'; lineHeight?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; align?: 'left' | 'center' | 'right'; color?: TextColorType; weight?: 'bold' | 'normal' | 'medium' | 'regular' | 'semi-bold'; margin?: SizeType; uppercase?: boolean; flex?: number | string; noWrap?: boolean; style?: React.CSSProperties; onClick?: React.EventHandler>; } const className = cn('description'); export const Description: FC = memo((props) => (
{ props.children }
));