import React from 'react' ; import clsx from 'clsx' ; export type CardTextProps = { className ? : string ; } ; export const CardText = ( props ) => { const { className , children , ... other } = props ; return ( < div className = { clsx ( 'CardText' , className ) } { ... other } > { typeof children === 'string' ? < p > { children } < /p> : children} < /div>); } ;