13 lines
439 B
TypeScript
13 lines
439 B
TypeScript
import { useTeamInvites } from "@calcom/lib/hooks/useHasTeamPlan";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { Badge } from "@calcom/ui";
|
|
|
|
export function TeamInviteBadge() {
|
|
const { isLoading, listInvites } = useTeamInvites();
|
|
const { t } = useLocale();
|
|
|
|
if (isLoading || !listInvites || listInvites.length === 0) return null;
|
|
|
|
return <Badge variant="default">{t("invite_team_notifcation_badge")}</Badge>;
|
|
}
|