Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
CollectionCard.tsx1.43 kB
import { Collection } from "@/api/openapi-schema"; import { MemberBadge } from "@/components/member/MemberBadge/MemberBadge"; import { Badge } from "@/components/ui/badge"; import { Card } from "@/components/ui/rich-card"; import { HStack, WStack } from "@/styled-system/jsx"; import { CollectionIcon } from "../ui/icons/Collection"; import { CollectionMenu } from "./CollectionMenu/CollectionMenu"; type Props = { collection: Collection; hideOwner?: boolean; }; export function CollectionCard({ collection, hideOwner }: Props) { const url = `/c/${collection.slug}`; return ( <Card key={collection.id} id={collection.id} url={url} shape="responsive" title={collection.name} text={collection.description} controls={ <WStack> <HStack> {hideOwner ? null : ( <MemberBadge profile={collection.owner} size="sm" name="handle" /> )} <CollectionItems collection={collection} /> </HStack> <HStack> <CollectionMenu collection={collection} /> </HStack> </WStack> } /> ); } function CollectionItems(props: Props) { const itemsLabel = props.collection.item_count === 1 ? "item" : "items"; return ( <Badge size="sm"> <CollectionIcon />{" "} <span> {props.collection.item_count} {itemsLabel} </span> </Badge> ); }

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