import { createTrackingEvent } from './creator.js';
import { AnalyticsEventType } from './types.js';
const codeSampleCopyEvent = createTrackingEvent(AnalyticsEventType.CodeSampleCopied);
export const createCodeSampleCopyEvent = ({ operation, type, lang = '', label = '', activeMimeName, activeExampleName, }) => {
    return codeSampleCopyEvent({
        resource: 'Redocly_CodeSample',
        action: 'CodeSampleCopied',
        operationId: operation.id,
        operationPath: operation.path,
        operationHttpVerb: operation.httpVerb,
        operationSummary: operation.name,
        exampleId: activeExampleName,
        exampleMimeType: activeMimeName,
        label,
        lang,
        type,
    });
};
//# sourceMappingURL=codeSampleCopy.js.map