Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
CollectionCreateTrigger.tsx1.03 kB
import { PropsWithChildren } from "react"; import { useDisclosure } from "src/utils/useDisclosure"; import { Button } from "@/components/ui/button"; import { CreateFolderIcon } from "@/components/ui/icons/CreateFolder"; import { ButtonVariantProps } from "@/styled-system/recipes"; import { CollectionCreateModal } from "./CollectionCreateModal"; import { Props } from "./useCollectionCreate"; export function CollectionCreateTrigger( props: PropsWithChildren< ButtonVariantProps & Props & { label?: string; } >, ) { const { onOpen, isOpen, onClose } = useDisclosure(); return ( <> {props.children ?? ( <Button flexShrink="0" minW="0" variant="subtle" justifyContent="start" size="sm" {...props} onClick={onOpen} > <CreateFolderIcon /> {props.label ?? "Collection"} </Button> )} <CollectionCreateModal isOpen={isOpen} onClose={onClose} {...props} /> </> ); }

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