mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): alerts display depending on current generation destination
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { useGetCurrentQueueItemQuery } from "services/api/endpoints/queue";
|
||||
|
||||
|
||||
export const useCurrentDestination = () => {
|
||||
const { destination } = useGetCurrentQueueItemQuery(undefined, {
|
||||
selectFromResult: ({ data }) => ({
|
||||
destination: data ? data.destination : null,
|
||||
}),
|
||||
});
|
||||
|
||||
return destination;
|
||||
};
|
||||
Reference in New Issue
Block a user