diff --git a/gui/src/components/modelSelection/platform/FreeTrialButton.tsx b/gui/src/components/modelSelection/platform/FreeTrialButton.tsx index 39de8acc9..f76289da4 100644 --- a/gui/src/components/modelSelection/platform/FreeTrialButton.tsx +++ b/gui/src/components/modelSelection/platform/FreeTrialButton.tsx @@ -1,5 +1,7 @@ import { ChevronDownIcon } from "@heroicons/react/24/outline"; +import { useContext } from "react"; import { Button, SecondaryButton, vscButtonBackground } from "../.."; +import { IdeMessengerContext } from "../../../context/IdeMessenger"; import { fontSize } from "../../../util"; import { Listbox, ListboxButton, ListboxOptions, Transition } from "../../ui"; import { useFontSize } from "../../ui/font"; @@ -37,6 +39,7 @@ function ProgressBar({ label, current, total }: ProgressBarProps) { export default function FreeTrialButton() { const smallFont = useFontSize(-3); const tinyFont = useFontSize(-4); + const ideMessenger = useContext(IdeMessengerContext); // Hardcoded values for now const autocompleteUsage = { current: 850, total: 2000 }; @@ -80,18 +83,22 @@ export default function FreeTrialButton() {