"use client"; import clsx from "clsx"; import type { Split } from "@/lib/types"; import { splitLabels } from "@/lib/data"; export interface SplitToggleProps { value: Split; onChange: (split: Split) => void; className?: string; } const SPLITS: Split[] = ["test", "hard"]; /** Controlled Test/Hard segmented control. */ export default function SplitToggle({ value, onChange, className, }: SplitToggleProps) { return (
{SPLITS.map((s) => ( ))}
); }