import React from 'react' ; import classnames from 'classnames' ; import { cssClasses } from './constants' ; export interface DialogContentProps < T > extends React . HTMLProps < T > { className ? : string ; tag ? : string ; id ? : string ; } const DialogContent = ( { className = '' , children , tag : Tag = 'div' , ... otherProps } ) => ( < Tag className = { classnames ( className , cssClasses . CONTENT ) } { ... otherProps } > { children } < /Tag>); type DialogContent < T > = React . ReactElement < T > ; export default DialogContent ;