Files
mtdb_movie/common/resources/client/admin/channels/channel-editor/channel-content-config.ts
maher 703f50a09d
Some checks failed
Build / run (push) Has been cancelled
first commit
2025-10-29 11:42:25 +01:00

43 lines
942 B
TypeScript
Executable File

import {MessageDescriptor} from '@common/i18n/message-descriptor';
import {Channel} from '@common/channels/channel';
import {ReactElement} from 'react';
import {SvgIconProps} from '@common/icons/svg-icon';
export interface ChannelContentConfig {
models: Record<
string,
{
label: MessageDescriptor;
sortMethods: string[];
layoutMethods: string[];
autoUpdateMethods?: string[];
}
>;
sortingMethods: Record<
string,
{
label: MessageDescriptor;
contentTypes?: Channel['config']['contentType'][];
}
>;
layoutMethods: Record<
string,
{
label: MessageDescriptor;
icon?: ReactElement<SvgIconProps>;
}
>;
autoUpdateMethods: Record<
string,
{
label: MessageDescriptor;
provider?: string;
value?: {
label: MessageDescriptor;
inputType: 'text' | 'number';
};
}
>;
userSelectableLayouts: string[];
}