mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
9ad4c03277
1) Downgrade numpy to avoid dependency conflict with numba 2) Move all non ldm/invoke files into `invokeai`. This includes assets, backend, frontend, and configs. 3) Fix up way that the backend finds the frontend and the generator finds the NSFW caution.png icon.
20 lines
543 B
TypeScript
20 lines
543 B
TypeScript
import { useContext } from 'react';
|
|
import { FaUpload } from 'react-icons/fa';
|
|
import { ImageUploaderTriggerContext } from 'app/contexts/ImageUploaderTriggerContext';
|
|
import IAIIconButton from './IAIIconButton';
|
|
|
|
const ImageUploaderIconButton = () => {
|
|
const openImageUploader = useContext(ImageUploaderTriggerContext);
|
|
|
|
return (
|
|
<IAIIconButton
|
|
aria-label="Upload Image"
|
|
tooltip="Upload Image"
|
|
icon={<FaUpload />}
|
|
onClick={openImageUploader || undefined}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default ImageUploaderIconButton;
|