mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
21 lines
787 B
TypeScript
21 lines
787 B
TypeScript
import { getTimeOption, hideTimerSeconds, OptionTitle } from '../../../common/components/view-params-editor/constants';
|
|
import type { ViewOption } from '../../../common/components/view-params-editor/types';
|
|
|
|
export const getStudioClockOptions = (timeFormat: string): ViewOption[] => [
|
|
{ title: OptionTitle.ClockOptions, collapsible: true, options: [getTimeOption(timeFormat)] },
|
|
{ title: OptionTitle.TimerOptions, collapsible: true, options: [hideTimerSeconds] },
|
|
{
|
|
title: OptionTitle.ElementVisibility,
|
|
collapsible: true,
|
|
options: [
|
|
{
|
|
id: 'hideRight',
|
|
title: 'Hide right section',
|
|
description: 'Hides the right section with On Air indicator and the schedule',
|
|
type: 'boolean',
|
|
defaultValue: false,
|
|
},
|
|
],
|
|
},
|
|
];
|