Files
cal.diy/packages/features/shell/TeamInviteBadge.tsx
T
30ba168fc3 chore: bump @trpc/* and @tanstack/react-query (#13335)
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]>
2024-01-23 16:42:29 -07:00

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>;
}