mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
18 lines
386 B
TypeScript
18 lines
386 B
TypeScript
|
import { storeToRefs } from 'pinia';
|
||
|
import { useNDVStore } from '@/stores/ndv.store';
|
||
|
import { useNodeType } from '@/composables/useNodeType';
|
||
|
|
||
|
export function useActiveNode() {
|
||
|
const ndvStore = useNDVStore();
|
||
|
|
||
|
const { activeNode } = storeToRefs(ndvStore);
|
||
|
const { nodeType: activeNodeType } = useNodeType({
|
||
|
node: activeNode,
|
||
|
});
|
||
|
|
||
|
return {
|
||
|
activeNode,
|
||
|
activeNodeType,
|
||
|
};
|
||
|
}
|