import { Link, type NavigateFunction, useLocation } from 'react-router-dom' import { Popover } from '@headlessui/react' import { BillingRemaining, BillingRemainingMode, } from '@src/components/BillingRemaining' import { BillingDialog } from '@src/components/BillingDialog' import { CustomIcon } from '@src/components/CustomIcon' import { HelpMenu } from '@src/components/HelpMenu' import { NetworkHealthIndicator } from '@src/components/NetworkHealthIndicator' import { NetworkMachineIndicator } from '@src/components/NetworkMachineIndicator' import Tooltip from '@src/components/Tooltip' import { useAbsoluteFilePath } from '@src/hooks/useAbsoluteFilePath' import { openExternalBrowserIfDesktop } from '@src/lib/openWindow' import { PATHS } from '@src/lib/paths' import { APP_VERSION, getReleaseUrl } from '@src/routes/utils' import { billingActor } from '@src/lib/singletons' export function LowerRightControls({ children, navigate = () => {}, }: { children?: React.ReactNode navigate?: NavigateFunction }) { const location = useLocation() const filePath = useAbsoluteFilePath() const linkOverrideClassName = '!text-chalkboard-70 hover:!text-chalkboard-80 dark:!text-chalkboard-40 dark:hover:!text-chalkboard-30' return (
{children} Text-to-CAD credits v{APP_VERSION} Telemetry Telemetry Settings Settings {!location.pathname.startsWith(PATHS.HOME) && ( )}
) }