Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
227
AssetThumbnailList.tsx1.3 kB
import { Asset } from "@/api/openapi-schema"; import { AssetThumbnail } from "@/components/asset/AssetThumbnail"; import { css } from "@/styled-system/css"; import { Box, HStack } from "@/styled-system/jsx"; export type Props = { assets: Asset[]; }; export function AssetThumbnailList({ assets }: Props) { if (assets.length === 0) { return null; } return ( <HStack w="full" overflowX="scroll" overflowY="hidden" mb="-scrollGutter" scrollSnapType="x" scrollSnapStrictness="mandatory" > <HStack w="full" h="20" maxW="full"> {assets.map((a, i) => ( // Sizing for next/image is measured in px, size tokens are basically // 4X, so size token 20 used above is equal to 80px, so we pass 80 here. <Box key={a.id} position="relative" scrollSnapAlign="start" scrollSnapStop="always" > <AssetThumbnail className={css({ objectFit: "cover", width: "20", height: "20", minWidth: "20", })} asset={a} set={assets} setIndex={i} /> </Box> ))} </HStack> </HStack> ); }

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