Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

730 B
Raw Blame
'use client';

import type { BuiltinPortalTitleProps } from '@lobechat/types';
import { Flexbox, Icon } from '@lobehub/ui';
import { Text } from '@lobehub/ui';
import { Globe } from 'lucide-react';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';

/** Portal header for the web-browsing tool. */
const PortalTitle = memo<BuiltinPortalTitleProps>(() => {
  const { t } = useTranslation('plugin');

  return (
    <Flexbox horizontal align={'center'} gap={8}>
      <Icon icon={Globe} size={16} />
      <Text style={{ fontSize: 16 }} type={'secondary'}>
        {t('search.title')}
      </Text>
    </Flexbox>
  );
});

PortalTitle.displayName = 'WebBrowsingPortalTitle';

export default PortalTitle;