🤯 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.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { Button, cssVar, Flexbox, Icon } from '@lobehub/ui';
import { type LucideIcon } from 'lucide-react';
import { ChevronDownIcon } from 'lucide-react';
import { type ComponentProps } from 'react';
import { memo } from 'react';
interface ActionIconWithChevronProps extends ComponentProps<typeof Button> {
icon: LucideIcon;
}
const ActionIconWithChevron = memo<ActionIconWithChevronProps>(
({ icon, title, style, disabled, className, ...rest }) => {
return (
<Button
{...rest}
className={className}
disabled={disabled}
style={{ paddingInline: 4, ...style }}
title={title}
type={'text'}
>
<Flexbox horizontal align={'center'} gap={4}>
<Icon color={cssVar.colorIcon} icon={icon} size={18} />
<Icon color={cssVar.colorIcon} icon={ChevronDownIcon} size={14} />
</Flexbox>
</Button>
);
},
);
ActionIconWithChevron.displayName = 'ActionIconWithChevron';
export default ActionIconWithChevron;