import React from 'react' ; import classnames from 'classnames' ; import { CSS_CLASSES } from './constant' ; export interface RowProps < T > extends React . HTMLProps < T > { className ? : string ; tag ? : string ; } const Row = ( { children = '' , className , tag : Tag = 'div' , ... otherProps } ) => { const classes = classnames ( CSS_CLASSES . INNER , className ) ; return ( < Tag className = { classes } { ... otherProps } > { children } < /Tag>); } ; export default Row ;