feat(ui): add nodesSelector

This commit is contained in:
psychedelicious 2023-06-05 22:02:23 +10:00
parent 8283d23b74
commit b200451330

View File

@ -17,9 +17,9 @@ import { InvocationTemplate, InvocationValue } from '../types/types';
import { parseSchema } from '../util/parseSchema';
import { log } from 'app/logging/useLogger';
import { forEach, size } from 'lodash-es';
import { isAnyGraphBuilt } from './actions';
import { RgbaColor } from 'react-colorful';
import { imageUrlsReceived } from 'services/thunks/image';
import { RootState } from 'app/store/store';
export type NodesState = {
nodes: Node<InvocationValue>[];
@ -130,3 +130,5 @@ export const {
} = nodesSlice.actions;
export default nodesSlice.reducer;
export const nodesSelecter = (state: RootState) => state.nodes;