import React, { FC, ElementType, HTMLAttributes } from 'react'; import classNames from 'classnames'; export interface CalloutTitleProps extends HTMLAttributes { /** Classi aggiuntive per il componente */ className?: string; /** Permette personalizzare il tag utilizzato per il contenitore del titolo (diverso da "div"). Accetta sia tag HTML che componenti React. */ tag?: ElementType; testId?: string; } export const CalloutTitle: FC = ({ children, className, tag = 'div', testId, ...attributes }) => { const Tag = tag; const classes = classNames(className, 'callout-title'); return ( {children} ); };