Skip to content

AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents

565 B
Raw Blame
import { t } from 'i18next';
import { HistoryIcon, PanelLeftCloseIcon } from 'lucide-react';

import { Button } from '@/components/ui/button';

export const ConversationsToggle = ({
  open,
  onClick,
}: {
  open: boolean;
  onClick: () => void;
}) => (
  <Button
    type="button"
    variant="outline"
    size="icon"
    aria-label={open ? t('Collapse conversations') : t('Expand conversations')}
    onClick={onClick}
    className="size-[30px] shrink-0 text-gray-11"
  >
    {open ? <PanelLeftCloseIcon size={14} /> : <HistoryIcon size={14} />}
  </Button>
);