import React, { FC, memo } from 'react'; import { cn } from '../../util/bem'; import { MediaPropsType } from '../../util/externalClasses'; import { SizeType, TextColorType, WeightType } from '../../util/global-props'; import { withMedia } from '../../util/media-merge'; import './title.component.scss'; export type TitlePropsType = { children?: React.ReactNode | string; size?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; sizeSm?: 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'; align?: 'left' | 'center' | 'right'; weight?: WeightType; color?: TextColorType; margin?: SizeType; padding?: SizeType; flex?: number | string; styles?: React.CSSProperties; hide?: MediaPropsType; lg?: TitlePropsType; md?: TitlePropsType; sm?: TitlePropsType; xsm?: TitlePropsType; } const className = cn('title'); export const Title: FC = withMedia(memo((props) => (
{ props.children }
)));