mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
23 lines
478 B
TypeScript
23 lines
478 B
TypeScript
/**
|
|
* @file
|
|
*/
|
|
import { createUuid } from 'common/uuid';
|
|
|
|
export const createHighlightSetting = (obj?: Record<string, any>) => ({
|
|
id: createUuid(),
|
|
highlightText: '',
|
|
blacklistText: '',
|
|
highlightColor: '#ffdd44',
|
|
highlightBlacklist: false,
|
|
highlightWholeMessage: true,
|
|
matchWord: false,
|
|
matchCase: false,
|
|
...obj,
|
|
});
|
|
|
|
export const createDefaultHighlightSetting = (obj?: Record<string, any>) =>
|
|
createHighlightSetting({
|
|
id: 'default',
|
|
...obj,
|
|
});
|