import { RootState } from "./store";

export const getDrugs = (state: RootState) => state.drugs.drugs;
export const getDrugById = (state: RootState, id: number) =>
  state.drugs.drugs.find((drug) => drug.id === id);
export const getWebSocket = (state: RootState) => state.websocket.ws;

  