"use client";
import { useState } from "react";
export function LoadingSpinner() {
return (
Connecting to MCP servers…
);
}
export function EmptyState({ message }: { message: string }) {
return (
);
}
export function ErrorBanner({
errors,
}: {
errors: { server: string; error: string }[];
}) {
if (errors.length === 0) return null;
return (
{errors.map((e) => (
{e.server}: {e.error}
))}
);
}
export function CreateToolForm({
onSubmit,
onCancel,
}: {
onSubmit: (name: string, description: string) => void;
onCancel: () => void;
}) {
const [name, setName] = useState("");
const [desc, setDesc] = useState("");
return (
);
}