Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
NotificationsTrigger.tsx1.09 kB
import { ButtonProps } from "@/components/ui/button"; import { IconButton } from "@/components/ui/icon-button"; import { NotificationIcon } from "@/components/ui/icons/Notification"; import { Box } from "@/styled-system/jsx"; import { AnchorProps, MenuItem } from "../site/Navigation/Anchors/Anchor"; export const NotificationsID = "notifications"; export const NotificationsRoute = "/notifications"; export const NotificationsLabel = "Notifications"; export const NotificationsIcon = <NotificationIcon />; type Props = { unread?: boolean; }; export function NotificationsTrigger({ hideLabel, unread, ...props }: AnchorProps & ButtonProps & Props) { return ( <IconButton size="sm" {...props}> {NotificationsIcon} {!hideLabel && ( <> &nbsp;<span>{NotificationsLabel}</span> </> )} {unread && ( <Box position="absolute" top="1" right="1" bgColor="fg.destructive/60" borderRadius="full" w="2" h="2" /> )} </IconButton> ); }

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/Southclaws/storyden'

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