Last active
January 24, 2025 07:54
-
-
Save harshq/d693a461be3dd60b804b2d2fde6f366e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client" | |
import React, { use } from 'react' | |
import ExampleSection from '../shared/ExampleSection'; | |
import { ThemeContext } from './themeContext'; | |
const UseApiClientContext: React.FC = () => { | |
const theme = use(ThemeContext) | |
return ( | |
<ExampleSection> | |
<code>System theme is: {theme}</code> | |
</ExampleSection> | |
); | |
} | |
export default UseApiClientContext; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment