diff --git a/website/src/app/docs/[version]/layout.tsx b/website/src/app/docs/[version]/layout.tsx new file mode 100644 index 0000000000..94317c27f5 --- /dev/null +++ b/website/src/app/docs/[version]/layout.tsx @@ -0,0 +1,26 @@ +import { DocHeader } from '../../../DocHeader'; +import { ImmutableConsole } from '../../../ImmutableConsole'; +import { getVersions } from '../../../static/getVersions'; +import { getVersionFromParams } from '../../getVersionFromParams'; + +export default function VersionLayout({ + children, + params, +}: { + children: React.ReactNode; + params: { version: string }; +}) { + const versions = getVersions(); + + const version = getVersionFromParams(params); + + return ( +