import { createTrackingEvent } from './creator.js';
import { AnalyticsEventType } from './types.js';
const panelToggleEvent = createTrackingEvent(AnalyticsEventType.PanelToggle);
export const createPanelToggleEvent = ({ operation, isExpanded, panelType, }) => {
    return panelToggleEvent({
        resource: 'Redocly_Operation',
        action: 'PanelToggled',
        operationId: operation.id,
        operationPath: operation.path,
        operationHttpVerb: operation.httpVerb,
        operationSummary: operation.name,
        panelType,
        state: isExpanded ? 'expanded' : 'collapsed',
    });
};
//# sourceMappingURL=panelToggle.js.map