import classNames from "classnames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { MembershipRole } from "@calcom/prisma/enums"; type PillColor = "blue" | "green" | "red" | "orange"; interface Props { text: string; color?: PillColor; } export default function TeamPill(props: Props) { return (
{props.text}
); } export function TeamRole(props: { role: MembershipRole }) { const { t } = useLocale(); const keys: Record = { [MembershipRole.OWNER]: "blue", [MembershipRole.ADMIN]: "red", [MembershipRole.MEMBER]: undefined, }; return ; }