mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 02:35:12 -05:00
12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { useGetCurrentQueueItemQuery } from 'services/api/endpoints/queue';
|
|
|
|
export const useCurrentDestination = () => {
|
|
const { destination } = useGetCurrentQueueItemQuery(undefined, {
|
|
selectFromResult: ({ data }) => ({
|
|
destination: data ? data.destination : null,
|
|
}),
|
|
});
|
|
|
|
return destination;
|
|
};
|