@@ -68,14 +68,14 @@ function CodePanel({
6868
6969 if ( ! code ) {
7070 throw new Error (
71- '`CodePanel` requires a `code` prop, or a child with a `code` prop.'
71+ '`CodePanel` requires a `code` prop, or a child with a `code` prop.' ,
7272 )
7373 }
7474
7575 // Remove shiki highlight comments for copying
7676 const cleanCode = code . replace (
7777 / + \/ \/ \$ H i g h l i g h t L i n e $ | \s * # \$ H i g h l i g h t L i n e $ / gm,
78- ''
78+ '' ,
7979 )
8080
8181 return (
@@ -122,7 +122,7 @@ export function CodeGroupHeader({
122122 'border-b py-3 transition ui-not-focus-visible:outline-none' ,
123123 childIndex === selectedIndex
124124 ? 'border-brand-500 text-brand-400'
125- : 'border-transparent text-zinc-400 hover:text-zinc-300'
125+ : 'border-transparent text-zinc-400 hover:text-zinc-300' ,
126126 ) }
127127 >
128128 < div
@@ -136,7 +136,7 @@ export function CodeGroupHeader({
136136 { renderLanguageLogo ( isValidElement ( child ) ? child . props : { } ) }
137137 {
138138 extractPanelProps (
139- isValidElement ( child ) ? child . props : ( { } as any )
139+ isValidElement ( child ) ? child . props : ( { } as any ) ,
140140 ) . language
141141 }
142142 </ div >
@@ -158,15 +158,15 @@ export function CodeGroupHeader({
158158 { selectedIndex === childIndex && (
159159 < >
160160 { extractPanelProps (
161- isValidElement ( child ) ? child . props : ( { } as any )
161+ isValidElement ( child ) ? child . props : ( { } as any ) ,
162162 ) . description && (
163163 < span
164164 id = { `description-${ childIndex } ` }
165165 className = "text-xs font-medium text-white font-mono p-2"
166166 >
167167 {
168168 extractPanelProps (
169- isValidElement ( child ) ? child . props : ( { } as any )
169+ isValidElement ( child ) ? child . props : ( { } as any ) ,
170170 ) . description
171171 }
172172 </ span >
@@ -270,7 +270,7 @@ const usePreferredLanguageStore = create<{
270270 set ( ( state ) => ( {
271271 preferredLanguages : [
272272 ...state . preferredLanguages . filter (
273- ( preferredLanguage ) => preferredLanguage !== language
273+ ( preferredLanguage ) => preferredLanguage !== language ,
274274 ) ,
275275 language ,
276276 ] ,
@@ -282,7 +282,7 @@ export function useTabGroupProps(availableLanguages: Array<string>) {
282282 usePreferredLanguageStore ( )
283283 const [ selectedIndex , setSelectedIndex ] = useState ( 0 )
284284 const activeLanguage = [ ...availableLanguages ] . sort (
285- ( a , z ) => preferredLanguages . indexOf ( z ) - preferredLanguages . indexOf ( a )
285+ ( a , z ) => preferredLanguages . indexOf ( z ) - preferredLanguages . indexOf ( a ) ,
286286 ) [ 0 ]
287287
288288 const languageIndex = availableLanguages . indexOf ( activeLanguage )
@@ -297,7 +297,7 @@ export function useTabGroupProps(availableLanguages: Array<string>) {
297297 selectedIndex,
298298 onChange : ( newSelectedIndex : number ) => {
299299 preventLayoutShift ( ( ) =>
300- addPreferredLanguage ( availableLanguages [ newSelectedIndex ] )
300+ addPreferredLanguage ( availableLanguages [ newSelectedIndex ] ) ,
301301 )
302302 } ,
303303 }
@@ -324,7 +324,7 @@ export function CodeGroup({
324324 'not-prose my-6 overflow-hidden rounded-2xl bg-zinc-900 shadow-md dark:ring-1 dark:ring-white/10'
325325 const languages =
326326 Children . map ( children , ( child ) =>
327- getPanelTitle ( isValidElement ( child ) ? child . props : { } )
327+ getPanelTitle ( isValidElement ( child ) ? child . props : { } ) ,
328328 ) ?? [ ]
329329 const tabGroupProps = useTabGroupProps ( languages )
330330
@@ -376,7 +376,7 @@ export function Code({
376376 if ( isGrouped ) {
377377 if ( typeof children !== 'string' ) {
378378 throw new Error (
379- '`Code` children must be a string when nested inside a `CodeGroup`.'
379+ '`Code` children must be a string when nested inside a `CodeGroup`.' ,
380380 )
381381 }
382382 return < code { ...props } dangerouslySetInnerHTML = { { __html : children } } />
@@ -404,7 +404,7 @@ export function Pre({
404404export function CodeGroupAutoload ( { children, isRunnable = false } ) {
405405 if ( ! children ) {
406406 console . warn (
407- 'CodeGroupAutoload: No children provided - something is wrong with your MDX file'
407+ 'CodeGroupAutoload: No children provided - something is wrong with your MDX file' ,
408408 )
409409 return null
410410 }
0 commit comments