import { UUID } from "crypto";
import { MessageInfoBox } from "@/lib/components/ui/MessageInfoBox/MessageInfoBox";
import { BrainUser } from "./components/BrainUser/BrainUser";
import { useBrainUsers } from "./hooks/useBrainUsers";
type BrainUsersProps = {
brainId: UUID;
};
export const BrainUsers = ({ brainId }: BrainUsersProps): JSX.Element => {
const { brainUsers, fetchBrainUsers } = useBrainUsers(brainId);
if (brainUsers.length === 0) {
return (
);
}
return (
<>
{brainUsers.map((subscription) => (
))}
>
);
};