import { MembershipRole } from "@prisma/client"; import classNames from "classnames"; import { useLocale } from "@lib/hooks/useLocale"; type PillColor = "blue" | "green" | "red" | "yellow"; interface Props { text: string; color?: PillColor; } /** @deprecated Use `packages/features/ee/teams/components/TeamPill.tsx` */ export default function TeamPill(props: Props) { return (
{props.text}
); } export function TeamRole(props: { role: MembershipRole }) { const { t } = useLocale(); const keys: Record = { [MembershipRole.OWNER]: undefined, [MembershipRole.ADMIN]: "red", [MembershipRole.MEMBER]: "blue", }; return ; }