mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Selis <selis@xynolabs.com>
21 lines
384 B
JavaScript
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,
|
|
});
|