primevue-mirror/components/lib/themes/actions/usePreset.js

10 lines
194 B
JavaScript

import Theme from 'primevue/themes';
export default (...presets) => {
const newPreset = SharedUtils.object.mergeKeys(...presets);
Theme.setPreset(newPreset);
return newPreset;
};