'use client' import { useTranslation } from 'react-i18next' import { type AppMode } from '@/types/app' import { AiText, CuteRobote } from '@/app/components/base/icons/src/vender/solid/communication' import { BubbleText } from '@/app/components/base/icons/src/vender/solid/education' import { Route } from '@/app/components/base/icons/src/vender/line/mapsAndTravel' export type AppModeLabelProps = { mode: AppMode } const AppModeLabel = ({ mode, }: AppModeLabelProps) => { const { t } = useTranslation() return ( <> {mode === 'completion' && (
{t('app.types.completion')}
)} {(mode === 'chat' || mode === 'advanced-chat') && (
{t('app.types.chatbot')}
)} {mode === 'agent-chat' && (
{t('app.types.agent')}
)} {mode === 'workflow' && (
{t('app.types.workflow')}
)} ) } export default AppModeLabel