import React, { ElementType, FC, HTMLAttributes } from 'react'; import classname from 'classnames'; export interface GridItemTextWrapperProps extends HTMLAttributes { /** Classi aggiuntive da usare per l'elemento */ className?: string; testId?: string; /** Tag dell'elemento (può essere ad esempio trasformato in figcaption) */ tag?: ElementType; } export const GridItemTextWrapper: FC = ({ className, children, testId, tag = 'span', ...attributes }) => { const classes = classname('it-griditem-text-wrapper', className); const Tag = tag; return ( {children} ); };