Skip to main content
Glama

Currents

Official
by currents-dev
footer.tsx1.71 kB
/*jshint quotmark:false */ /*jshint white:false */ /*jshint trailing:false */ /*jshint newcap:false */ /*global React */ /// <reference path="./interfaces.d.ts"/> import * as classNames from "classnames"; import * as React from "react"; import { ALL_TODOS, ACTIVE_TODOS, COMPLETED_TODOS } from "./constants"; import { Utils } from "./utils"; class TodoFooter extends React.Component<ITodoFooterProps, {}> { public render() { var activeTodoWord = Utils.pluralize(this.props.count, 'item'); var clearButton = null; if (this.props.completedCount > 0) { clearButton = ( <button className="clear-completed" onClick={this.props.onClearCompleted}> Clear completed </button> ); } const nowShowing = this.props.nowShowing; return ( <footer className="footer"> <span className="todo-count"> <strong>{this.props.count}</strong> {activeTodoWord} left </span> <ul className="filters"> <li> <a href="#/" className={classNames({selected: nowShowing === ALL_TODOS})}> All </a> </li> {' '} <li> <a href="#/active" className={classNames({selected: nowShowing === ACTIVE_TODOS})}> Active </a> </li> {' '} <li> <a href="#/completed" className={classNames({selected: nowShowing === COMPLETED_TODOS})}> Completed </a> </li> </ul> {clearButton} </footer> ); } } export { TodoFooter };

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/currents-dev/currents-mcp'

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