mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-15 18:54:58 -05:00
Increased consistency and readability by replacing any unnecessary JSX expressions in places where string literals are sufficient
19 lines
487 B
TypeScript
19 lines
487 B
TypeScript
import { Image } from '@chakra-ui/react';
|
|
import { RootState } from 'app/store';
|
|
import { useAppSelector } from 'app/storeHooks';
|
|
|
|
export default function InitialImageOverlay() {
|
|
const initialImage = useAppSelector(
|
|
(state: RootState) => state.generation.initialImage
|
|
);
|
|
|
|
return initialImage ? (
|
|
<Image
|
|
fit="contain"
|
|
src={typeof initialImage === 'string' ? initialImage : initialImage.url}
|
|
rounded="md"
|
|
className="checkerboard"
|
|
/>
|
|
) : null;
|
|
}
|