@devries-cameron20 / composio Mirror · read-only
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 03:37 UTC

next
tsx 20 lines 800 Bytes
Raw
1 // Inline app logos used in the daily-standup-bot example page intro.
2
3 const LOGO_CDN = 'https://logos.composio.dev/api';
4
5 /** A small inline app logo (e.g. <AppLogo slug="github" />) from the Composio
6 * logo CDN, sized to fit the text line. The CDN serves fixed-colour SVGs, so
7 * pass `invert` for monochrome marks (GitHub) that would vanish on the dark
8 * theme; leave full-colour logos (Slack) bare. */
9 export function AppLogo({ slug, alt, invert }: { slug: string; alt?: string; invert?: boolean }) {
10 return (
11 <img
12 src={`${LOGO_CDN}/${slug}`}
13 alt={alt ?? slug}
14 width={16}
15 height={16}
16 className={invert ? 'inline-block dark:invert' : 'inline-block'}
17 style={{ height: '1em', width: '1em', verticalAlign: '-0.18em', margin: '0 0.12em' }}
18 />
19 );
20 }