import React from 'react' ; import classnames from 'classnames' ; import { cssClasses } from './constants' ; export interface TitleProps < T > extends React . HTMLProps < T > { className ? : string ; tag ? : string ; } const Title = ( { children , className , tag : Tag = 'span' , ... otherProps } ) => ( < Tag className = { classnames ( className , cssClasses . TITLE ) } { ... otherProps } > { children } < /Tag>); export default Title ;