Skip to main content
Glama
SwitchThemeSwitcher.tsx896 B
'use client'; import { Modes, SwitchSelector, type SwitchSelectorChoices, } from '@intlayer/design-system'; import { MoonIcon, SunIcon } from 'lucide-react'; import { useTheme } from 'next-themes'; import type { FC } from 'react'; export const SwitchThemeSwitcher: FC = () => { const { resolvedTheme, setTheme } = useTheme(); const themeSwitcher = [ { content: ( <SunIcon size={20} data-mode="light" aria-label="Switch to light mode" /> ), value: Modes.light, }, { content: ( <MoonIcon size={20} data-mode="dark" aria-label="Switch to dark mode" /> ), value: Modes.dark, }, ] as SwitchSelectorChoices<Modes>; return ( <SwitchSelector choices={themeSwitcher} value={resolvedTheme} onChange={setTheme} color="text" size="sm" /> ); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server