"use client";
import { useTranslations } from "next-intl";
import { BOARDS } from "@/lib/boards";
import { cn } from "@/lib/utils";
import { Badge } from "@/components/ui/badge";
export function BoardSelector({
value,
onChange,
}: {
value: string;
onChange: (boardId: string) => void;
}) {
const t = useTranslations("boards");
return (
{BOARDS.map((board) => {
const selected = board.id === value;
const disabled = !board.available;
return (
);
})}
);
}