import { AverageEventDurationChart, BookingKPICards, BookingStatusLineChart, LeastBookedTeamMembersTable, MostBookedTeamMembersTable, PopularEventsTable, } from "@calcom/features/insights/components"; import { FiltersProvider } from "@calcom/features/insights/context/FiltersProvider"; import { useFilterContext } from "@calcom/features/insights/context/provider"; import { Filters } from "@calcom/features/insights/filters"; import Shell from "@calcom/features/shell/Shell"; import { UpgradeTip } from "@calcom/features/tips"; import { WEBAPP_URL } from "@calcom/lib/constants"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { trpc } from "@calcom/trpc"; import { Button, ButtonGroup } from "@calcom/ui"; import { FiRefreshCcw, FiUserPlus, FiUsers } from "@calcom/ui/components/icon"; const Heading = () => { const { t } = useLocale(); const { filter: { selectedTeamName }, } = useFilterContext(); return (

{t("analytics_for_organisation", { organisationName: selectedTeamName, })}

{t("subtitle_analytics")}

); }; export default function InsightsPage() { const { t } = useLocale(); const { data: user } = trpc.viewer.me.useQuery(); const features = [ { icon: , title: t("view_bookings_across"), description: t("view_bookings_across_description"), }, { icon: , title: t("identify_booking_trends"), description: t("identify_booking_trends_description"), }, { icon: , title: t("spot_popular_event_types"), description: t("spot_popular_event_types_description"), }, ]; return (
}> {!user ? ( <> ) : (
{t("looking_for_more_analytics")} {" "} {t("contact_support")}
)} ); }