import Link from "next/link"; import { WEBAPP_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { md } from "@calcom/lib/markdownIt"; import type { TeamWithMembers } from "@calcom/lib/server/queries/teams"; import { Avatar } from "@calcom/ui"; type TeamType = NonNullable; type MembersType = TeamType["members"]; type MemberType = MembersType[number]; const Member = ({ member, teamName }: { member: MemberType; teamName: string | null }) => { const { t } = useLocale(); const isBioEmpty = !member.bio || !member.bio.replace("


", "").length; return (

{member.name}

{!isBioEmpty ? ( <>
) : ( t("user_from_team", { user: member.name, team: teamName }) )}
); }; const Members = ({ members, teamName }: { members: MembersType; teamName: string | null }) => { if (!members || members.length === 0) { return null; } return (
{members.map((member) => { return member.username !== null && ; })}
); }; const Team = ({ team }: { team: TeamType }) => { return (
); }; export default Team;