"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 (

{t("title")}

{t("hint")}

{BOARDS.map((board) => { const selected = board.id === value; const disabled = !board.available; return ( ); })}
); }