import * as Tooltip from '@radix-ui/react-tooltip'; import { useEffect, useState } from 'react'; import { useChatDeployment } from '~/.client/hooks/useChatDeployment'; import { DeploymentPlatformEnum } from '~/types/deployment'; export function _1PanelDeploymentLink() { const { getDeploymentByPlatform } = useChatDeployment(); const [deploymentUrl, setDeploymentUrl] = useState(undefined); useEffect(() => { setDeploymentUrl(getDeploymentByPlatform(DeploymentPlatformEnum._1PANEL)?.url || ''); }, [getDeploymentByPlatform]); return ( deploymentUrl && ( { e.stopPropagation(); }} >
{deploymentUrl} ) ); }