The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
import React from "react";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
import type { ExportFormat } from "./types";
interface ExportFormatSelectorProps {
value: ExportFormat;
onChange: (value: ExportFormat) => void;
}
const FORMAT_LABELS: Record<ExportFormat, string> = {
csv: "CSV (Excel, Google Sheets)",
json: "JSON (includes metadata)",
};
const ExportFormatSelector: React.FC<ExportFormatSelectorProps> = ({ value, onChange }) => {
return (
<div>
<label className="text-sm font-medium text-foreground block mb-2">Format</label>
<Select value={value} onValueChange={(next: ExportFormat | null) => next && onChange(next)}>
<SelectTrigger className="w-full">
<SelectValue>{FORMAT_LABELS[value]}</SelectValue>
</SelectTrigger>
<SelectContent>
{(Object.keys(FORMAT_LABELS) as ExportFormat[]).map((format) => (
<SelectItem key={format} value={format}>
{FORMAT_LABELS[format]}
</SelectItem>
))}
</SelectContent>
</Select>
</div>
);
};
export default ExportFormatSelector;