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

10 lines
230 B
JavaScript
Raw Normal View History

2024-05-13 21:57:53 +00:00
import { SharedUtils, Theme } from 'primevue/themes';
2024-05-06 15:50:06 +00:00
export default (...presets) => {
const newPreset = SharedUtils.object.mergeKeys(Theme.getPreset(), ...presets);
Theme.setPreset(newPreset);
return newPreset;
};