File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
website/src/app/docs/[version] Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { DocHeader } from '../../../DocHeader' ;
2
+ import { ImmutableConsole } from '../../../ImmutableConsole' ;
3
+ import { getVersions } from '../../../static/getVersions' ;
4
+ import { getVersionFromParams } from '../../getVersionFromParams' ;
5
+
6
+ export default function VersionLayout ( {
7
+ children,
8
+ params,
9
+ } : {
10
+ children : React . ReactNode ;
11
+ params : { version : string } ;
12
+ } ) {
13
+ const versions = getVersions ( ) ;
14
+
15
+ const version = getVersionFromParams ( params ) ;
16
+
17
+ return (
18
+ < div >
19
+ < ImmutableConsole version = { version } />
20
+ < DocHeader versions = { versions } currentVersion = { version } />
21
+ < div className = "pageBody" >
22
+ < div className = "contents" > { children } </ div >
23
+ </ div >
24
+ </ div >
25
+ ) ;
26
+ }
You can’t perform that action at this time.
0 commit comments