feat(ui): alerts display depending on current generation destination

This commit is contained in:
psychedelicious
2024-09-12 22:27:57 +10:00
parent 269db8ae19
commit dd3013d333
4 changed files with 36 additions and 17 deletions

View File

@@ -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;
};