Files
InvokeAI/frontend/src/features/tabs/ImageToImage/ImageToImage.tsx
2022-10-09 08:32:06 -04:00

29 lines
804 B
TypeScript

import React from 'react';
import ImageToImagePanel from './ImageToImagePanel';
import ImageToImageDisplay from './ImageToImageDisplay';
import ImageGallery from '../../gallery/ImageGallery';
import { RootState, useAppSelector } from '../../../app/store';
export default function ImageToImage() {
const shouldShowGallery = useAppSelector(
(state: RootState) => state.gallery.shouldShowGallery
);
return (
<div className="image-to-image-workarea">
<ImageToImagePanel />
<div
className="image-to-image-display-area"
style={
shouldShowGallery
? { gridTemplateColumns: 'auto max-content' }
: { gridTemplateColumns: 'auto' }
}
>
<ImageToImageDisplay />
<ImageGallery />
</div>
</div>
);
}