import { IconButton, Tooltip } from '@invoke-ai/ui-library'; import { memo } from 'react'; import { useTranslation } from 'react-i18next'; import { PiCodeBold } from 'react-icons/pi'; type Props = { isOpen: boolean; onOpen: () => void; }; export const AddPromptTriggerButton = memo((props: Props) => { const { onOpen, isOpen } = props; const { t } = useTranslation(); return ( } onClick={onOpen} /> ); }); AddPromptTriggerButton.displayName = 'AddPromptTriggerButton';