mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 13:19:33 +08:00
- Refactored CustomCollapse to utilize Accordion and AccordionItem from HeroUI, simplifying props and improving functionality. - Updated ToolsCallingIcon to accept TooltipProps for better customization. - Revised stories for CustomCollapse to reflect new prop structure and added examples for various use cases. - Cleaned up unnecessary props and improved documentation in story files.
25 lines
788 B
TypeScript
25 lines
788 B
TypeScript
// Original: src/renderer/src/components/Icons/ToolsCallingIcon.tsx
|
|
import { Tooltip, type TooltipProps } from '@heroui/react'
|
|
import { Wrench } from 'lucide-react'
|
|
import React from 'react'
|
|
|
|
import { cn } from '../../../utils'
|
|
|
|
interface ToolsCallingIconProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
className?: string
|
|
iconClassName?: string
|
|
TooltipProps?: TooltipProps
|
|
}
|
|
|
|
const ToolsCallingIcon = ({ className, iconClassName, TooltipProps, ...props }: ToolsCallingIconProps) => {
|
|
return (
|
|
<div className={cn('flex justify-center items-center', className)} {...props}>
|
|
<Tooltip placement="top" {...TooltipProps}>
|
|
<Wrench className={cn('w-4 h-4 mr-1.5 text-[#00b96b]', iconClassName)} />
|
|
</Tooltip>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default ToolsCallingIcon
|