import{createTrackingEvent as r}from"./creator.js";import{AnalyticsEventType as o}from"./types.js";const c=r(o.CodeSampleLanguageSwitched),l=({operation:e,sample:a})=>{const{lang:t,label:n}=a;return c({resource:"Redocly_CodeSample",action:"LanguageSwitched",operationId:e.id,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.name,label:n||t,lang:t})};export{l as createLanguageSwitchEvent};
