mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
chore: clean up .gitignore
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
import IAIDndImage from 'common/components/IAIDndImage';
|
||||
import { memo } from 'react';
|
||||
import { useGetImageDTOQuery } from 'services/api/endpoints/images';
|
||||
import { ImageOutput } from 'services/api/types';
|
||||
|
||||
type Props = {
|
||||
output: ImageOutput;
|
||||
};
|
||||
|
||||
const ImageOutputPreview = ({ output }: Props) => {
|
||||
const { image } = output;
|
||||
const { data: imageDTO } = useGetImageDTOQuery(image.image_name);
|
||||
|
||||
return <IAIDndImage imageDTO={imageDTO} />;
|
||||
};
|
||||
|
||||
export default memo(ImageOutputPreview);
|
@ -0,0 +1,13 @@
|
||||
import { Text } from '@chakra-ui/react';
|
||||
import { memo } from 'react';
|
||||
import { FloatOutput, IntegerOutput } from 'services/api/types';
|
||||
|
||||
type Props = {
|
||||
output: IntegerOutput | FloatOutput;
|
||||
};
|
||||
|
||||
const NumberOutputPreview = ({ output }: Props) => {
|
||||
return <Text>{output.value}</Text>;
|
||||
};
|
||||
|
||||
export default memo(NumberOutputPreview);
|
@ -0,0 +1,13 @@
|
||||
import { Text } from '@chakra-ui/react';
|
||||
import { memo } from 'react';
|
||||
import { StringOutput } from 'services/api/types';
|
||||
|
||||
type Props = {
|
||||
output: StringOutput;
|
||||
};
|
||||
|
||||
const StringOutputPreview = ({ output }: Props) => {
|
||||
return <Text>{output.value}</Text>;
|
||||
};
|
||||
|
||||
export default memo(StringOutputPreview);
|
Reference in New Issue
Block a user