Skip to main content
Glama
by m-yoshiro
Header.tsx903 B
import React from 'react'; import './header.css'; import { Button } from './Button.jsx'; type User = { name: string; }; interface HeaderProps { user?: User; onLogin: () => void; onLogout: () => void; onCreateAccount: () => void; } export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => ( <header> <div className="storybook-header"> <div> <h1>Acme</h1> </div> <div> {user ? ( <> <span className="welcome"> Welcome, <b>{user.name}</b>! </span> <Button size="small" onClick={onLogout} label="Log out" /> </> ) : ( <> <Button size="small" onClick={onLogin} label="Log in" /> <Button primary size="small" onClick={onCreateAccount} label="Sign up" /> </> )} </div> </div> </header> );

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/m-yoshiro/storybook-mcp'

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