UNPKG

react-vaccine

Version:
14 lines (11 loc) 422 B
import { vaccinator } from './lib/vaccinator.js'; import { withVaccine } from './lib/with-vaccine.js'; import * as vaccinations from './vaccinations.js'; import MockState from './lib/mock-state.js'; const getVaccination = key => { return vaccinations.Components[key]; }; const vaccinate = (key, Component) => { return withVaccine(Component, getVaccination(key), key); }; export { vaccinator, vaccinate, MockState };