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
"use client";
import { useRouter } from "next/navigation";
import React, { PropsWithChildren } from "react";
import { Button, ButtonProps } from "@/components/ui/button";
import { ArrowLeftIcon } from "@/components/ui/icons/Arrow";
export function BackAction({
children,
...props
}: PropsWithChildren<ButtonProps>) {
const router = useRouter();
const hasLabel = React.Children.count(children) > 0;
function handleBack() {
router.back();
}
return (
<Button
size="xs"
variant="ghost"
px={hasLabel ? undefined : "0"}
onClick={handleBack}
{...props}
>
<ArrowLeftIcon /> {children}
</Button>
);
}