import StickyBox from "react-sticky-box"; import classNames from "@calcom/lib/classNames"; import useMediaQuery from "@calcom/lib/hooks/useMediaQuery"; import { LargeCalendar } from "./components/LargeCalendar"; import { TroubleshooterHeader } from "./components/TroubleshooterHeader"; import { TroubleshooterSidebar } from "./components/TroubleshooterSidebar"; import { useInitalizeTroubleshooterStore } from "./store"; import type { TroubleshooterProps } from "./types"; const extraDaysConfig = { desktop: 7, tablet: 4, }; const TroubleshooterComponent = ({ month }: TroubleshooterProps) => { const isMobile = useMediaQuery("(max-width: 768px)"); const isTablet = useMediaQuery("(max-width: 1024px)"); const extraDays = isTablet ? extraDaysConfig.tablet : extraDaysConfig.desktop; useInitalizeTroubleshooterStore({ month: month, }); return ( <>