mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-19 09:54:24 -05:00
feat: Make Embedding Picker a mini toggle
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
import { Flex } from '@chakra-ui/react';
|
||||
import IAICollapse from 'common/components/IAICollapse';
|
||||
import { RootState } from 'app/store/store';
|
||||
import { useAppSelector } from 'app/store/storeHooks';
|
||||
import ParamEmbeddingSelect from './ParamEmbeddingSelect';
|
||||
|
||||
export default function ParamEmbeddingCollapse() {
|
||||
const shouldShowEmbeddingPicker = useAppSelector(
|
||||
(state: RootState) => state.ui.shouldShowEmbeddingPicker
|
||||
);
|
||||
|
||||
return (
|
||||
<IAICollapse label="Embeddings">
|
||||
shouldShowEmbeddingPicker && (
|
||||
<Flex sx={{ flexDir: 'column', gap: 2 }}>
|
||||
<ParamEmbeddingSelect />
|
||||
</Flex>
|
||||
</IAICollapse>
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user