import * as React from "react"; import { useMedia } from "react-use"; import theme from "../lib/theme"; import { PlansProvider } from "../contexts/plans/PlansProvider"; import { ArrowRightIcon } from "../components/Icons"; import { Panel } from "../components/Panel"; import { Tab, TabPanel, Tabs } from "../components/Tabs"; import LatestActivity from "../components/LatestActivity/LatestActivity"; import DashboardLayout from "../layouts/DashboardLayout"; import Slider from "../components/Slider/Slider"; import CurrentUsage from "../components/CurrentUsage"; import Uploader from "../components/Uploader/Uploader"; import CurrentPlan from "../components/CurrentPlan"; import { FullScreenLoadingIndicator } from "../components/LoadingIndicator"; import useUpgradeRedirect from "../hooks/useUpgradeRedirect"; const IndexPage = () => { const showRecentActivity = useMedia(`(min-width: ${theme.screens.md})`); const { verifyingSubscription } = useUpgradeRedirect(); if (verifyingSubscription) { return ; } return (
, Usage } className="h-[330px]" > , Current plan } className="h-[330px]" > , ]} />
{showRecentActivity && (
)}
); }; IndexPage.Layout = DashboardLayout; export default IndexPage;