import classNames from 'classnames'; import React, { ElementType, FC, PropsWithChildren, useState } from 'react'; import { Button } from '../Button/Button'; import { Icon } from '../Icon/Icon'; export interface CalloutMoreFooterProps { id?: string; /** Utilizzarlo in caso si utilizzo di componenti personalizzati */ tag?: ElementType; /** Classi aggiuntive da usare per il componente */ className?: string; fileUrl?: string; } export const CalloutMoreFooter: FC> = ({ id = 'cm-footer', tag = 'div', className, fileUrl, children, ...attributes }) => { const Tag = tag; const classes = classNames('collapse-div', className); const [isOpen, setOpen] = useState(false); return (
{fileUrl && ( PDFDownload )}
{children}
); };