import { create } from "zustand";
import type { Results } from "../types/test";

interface ResultsState {
  results: Results | null;
  setResults: (results: Results) => void;
  clearResults: () => void;
}

export const useResults = create<ResultsState>((set) => ({
  results: null,

  setResults: (results: Results) => set({ results }),

  clearResults: () => set({ results: null }),
}));
