import Link from "next/link"; import { useTranslation } from "react-i18next"; import { FaBrain } from "react-icons/fa"; import { Chip } from "@/lib/components/ui/Chip"; import { MinimalBrainForUser } from "@/lib/context/BrainProvider/types"; import { cn } from "@/lib/utils"; import { useBrainListItem } from "./hooks/useBrainListItem"; type BrainsListItemProps = { brain: MinimalBrainForUser; }; export const BrainListItem = ({ brain }: BrainsListItemProps): JSX.Element => { const { selected } = useBrainListItem(brain); const { t } = useTranslation("brain"); return (

{brain.name}

{brain.status === "public" && ( {t("public_brain_label")} )}
); };