Files
CHOMPStation2/tgui/packages/tgui-panel/settings/model.js
CHOMPStation2 eb65b5721c [MIRROR] tgchat part 1 (#7273)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: Selis <selis@xynolabs.com>
2023-11-25 13:36:55 +01:00

21 lines
384 B
JavaScript

/**
* @file
*/
import { createUuid } from 'common/uuid';
export const createHighlightSetting = (obj) => ({
id: createUuid(),
highlightText: '',
highlightColor: '#ffdd44',
highlightWholeMessage: true,
matchWord: false,
matchCase: false,
...obj,
});
export const createDefaultHighlightSetting = (obj) =>
createHighlightSetting({
id: 'default',
...obj,
});