File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import clsx from 'clsx' ;
3+ import { ThemeClassNames , HtmlClassNameProvider } from '@docusaurus/theme-common' ;
4+ import renderRoutes from '@docusaurus/renderRoutes' ;
5+ import Layout from '@theme/Layout' ;
6+ import Clarity from '@microsoft/clarity' ;
7+
8+ import type { Props } from '@theme/DocVersionRoot' ;
9+
10+ const projectId = "p9179dcazx"
11+
12+ Clarity . init ( projectId ) ;
13+
14+ export default function DocsRoot ( props : Props ) : JSX . Element {
15+ return (
16+ < HtmlClassNameProvider className = { clsx ( ThemeClassNames . wrapper . docsPages ) } >
17+ < Layout > { renderRoutes ( props . route . routes ! ) } </ Layout >
18+ </ HtmlClassNameProvider >
19+ ) ;
20+ }
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import Clarity from '@microsoft/clarity' ;
3+
4+ const projectId = "p9179dcazx"
5+ Clarity . init ( projectId ) ;
6+
7+ // Default implementation, that you can customize
8+ export default function Root ( { children} ) {
9+ return < > { children } </ > ;
10+ }
You can’t perform that action at this time.
0 commit comments