Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Omar López <[email protected]> Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Alex van Andel <[email protected]> Co-authored-by: zomars <[email protected]> Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Benny Joo <[email protected]> Co-authored-by: Carina Wollendorfer <[email protected]> Co-authored-by: Gergő Móricz <[email protected]> Co-authored-by: Keith Williams <[email protected]>
13 lines
439 B
TypeScript
13 lines
439 B
TypeScript
import { useTeamInvites } from "@calcom/lib/hooks/useHasPaidPlan";
|
|
import { useLocale } from "@calcom/lib/hooks/useLocale";
|
|
import { Badge } from "@calcom/ui";
|
|
|
|
export function TeamInviteBadge() {
|
|
const { isPending, listInvites } = useTeamInvites();
|
|
const { t } = useLocale();
|
|
|
|
if (isPending || !listInvites || listInvites.length === 0) return null;
|
|
|
|
return <Badge variant="default">{t("invite_team_notifcation_badge")}</Badge>;
|
|
}
|