extraneous store cruft (#809)

This commit is contained in:
Michael Quigley 2024-12-18 14:38:06 -05:00
parent 6476d68d4f
commit 686443c921
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -1,20 +1,16 @@
import {create} from "zustand";
import {Environment, Metrics} from "../api";
import {Environment} from "../api";
type State = {
account: Metrics;
environments: Array<Environment>;
};
type Action = {
updateAccount: (metrics: State['account']) => void
updateEnvironments: (environments: State['environments']) => void
};
const useMetricsStore = create<State & Action>((set) => ({
account: null,
environments: new Array<Environment>(),
updateAccount: (metrics) => set({account: metrics}),
updateEnvironments: (environments) => set({environments: environments}),
}));