import { jsx as _jsx } from "react/jsx-runtime";
import { forwardRef } from 'react';
import { Accordion } from '../Accordion';
import { Alert } from '../Alert';
export const CollapsableAlert = forwardRef(({ title, icon, severity = 'info', actions, display = true, children, isExpanded, onExpandedChange, subtitle, summaryVariant, }, ref) => {
    return (_jsx(Alert, { ref: ref, severity: severity, icon: icon, display: display, actions: actions, children: _jsx(Accordion, { summary: title, isExpanded: isExpanded, onChange: onExpandedChange, subtitle: subtitle, summaryVariant: summaryVariant, children: children }) }));
});
