Skyvern Evaluation New Endpoint - general /runs (#2374)

This commit is contained in:
Shuchang Zheng
2025-05-17 10:33:43 -07:00
committed by GitHub
parent 6e27dbb8e0
commit 339c894340
32 changed files with 288 additions and 485 deletions

View File

@@ -6,21 +6,27 @@ type Option = {
};
type Props = {
className?: string;
options: Option[];
value: string;
onChange: (value: string) => void;
};
function SwitchBar({ options, value, onChange }: Props) {
function SwitchBar({ className, options, value, onChange }: Props) {
return (
<div className="flex w-fit gap-1 rounded-sm border border-slate-700 p-2">
<div
className={cn(
"flex w-fit gap-1 rounded-sm border border-slate-700 p-2",
className,
)}
>
{options.map((option) => {
const selected = option.value === value;
return (
<div
key={option.value}
className={cn(
"cursor-pointer whitespace-nowrap rounded-sm px-3 py-2 text-xs hover:bg-slate-700",
"flex cursor-pointer items-center whitespace-nowrap rounded-sm px-3 py-2 text-xs hover:bg-slate-700",
{
"bg-slate-700": selected,
},