import { ComputingResource } from '@/types';
import { proxy } from 'umi';

type ComputingResourceStore = {
  computingResource: ComputingResource[];
};

const state = proxy<ComputingResourceStore>({
  computingResource: [],
});

export const setComputingResource = (computingResource: ComputingResource[]) => {
  state.computingResource = computingResource;
};

export default state;
