mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
21 lines
541 B
TypeScript
21 lines
541 B
TypeScript
import { useTranslation } from 'react-i18next';
|
|
import { FaUpload } from 'react-icons/fa';
|
|
import IAIIconButton from './IAIIconButton';
|
|
import useImageUploader from 'common/hooks/useImageUploader';
|
|
|
|
const ImageUploaderIconButton = () => {
|
|
const { t } = useTranslation();
|
|
const { openUploader } = useImageUploader();
|
|
|
|
return (
|
|
<IAIIconButton
|
|
aria-label={t('accessibility.uploadImage')}
|
|
tooltip="Upload Image"
|
|
icon={<FaUpload />}
|
|
onClick={openUploader}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default ImageUploaderIconButton;
|