mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 12:55:05 -05:00
refactor(ui): metadata recall buttons & hotkeys (WIP)
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
import { Flex } from '@invoke-ai/ui-library';
|
||||
import { useStore } from '@nanostores/react';
|
||||
import { useCanvasSessionContext } from 'features/controlLayers/components/SimpleSession/context';
|
||||
import { useAppSelector } from 'app/store/storeHooks';
|
||||
import { StagingAreaItemsList } from 'features/controlLayers/components/SimpleSession/StagingAreaItemsList';
|
||||
import { StagingAreaToolbar } from 'features/controlLayers/components/StagingArea/StagingAreaToolbar';
|
||||
import { selectIsStaging } from 'features/controlLayers/store/canvasStagingAreaSlice';
|
||||
import { memo } from 'react';
|
||||
|
||||
export const StagingArea = memo(() => {
|
||||
const ctx = useCanvasSessionContext();
|
||||
const hasItems = useStore(ctx.$hasItems);
|
||||
const isStaging = useAppSelector(selectIsStaging);
|
||||
|
||||
if (!hasItems) {
|
||||
if (!isStaging) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user