diff --git a/site/components/Layout.tsx b/site/components/Layout.tsx
index 9d1b9195..3c95e1ad 100644
--- a/site/components/Layout.tsx
+++ b/site/components/Layout.tsx
@@ -1,5 +1,6 @@
import { siteConfig } from '@/config/siteConfig';
import { NextSeo } from 'next-seo';
+import { useTheme } from 'next-themes';
import Link from 'next/link';
import { useCallback, useEffect, useState } from 'react';
@@ -58,6 +59,7 @@ export default function Layout({
tableOfContents?;
}) {
// const { toc } = children.props;
+ const { theme, setTheme } = useTheme();
const currentSection = useTableOfContents(tableOfContents);
@@ -87,14 +89,18 @@ export default function Layout({
>
Built by{' '}
{/** TABLE OF CONTENTS */}
- {tableOfContents.length > 0 && (siteConfig.tableOfContents) && (
+ {tableOfContents.length > 0 && siteConfig.tableOfContents && (