import type { ChakraProps, ThemeTypings } from '@invoke-ai/ui-library'; import { Button, IconButton } from '@invoke-ai/ui-library'; import type { ReactElement, ReactNode } from 'react'; import { memo } from 'react'; type Props = { label: string; tooltip: ReactNode; icon?: ReactElement; onClick?: () => void; isDisabled?: boolean; colorScheme: ThemeTypings['colorSchemes']; asIconButton?: boolean; isLoading?: boolean; loadingText?: string; sx?: ChakraProps['sx']; }; const QueueButton = ({ label, tooltip, icon, onClick, isDisabled, colorScheme, asIconButton, isLoading, loadingText, sx, }: Props) => { if (asIconButton) { return ( ); } return ( ); }; export default memo(QueueButton);