JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "channel-content-config.ts"

Full Path: /home/markqprx/iniasli.pro/client/admin/channels/channel-editor/channel-content-config.ts
File size: 942 bytes
MIME-type: text/plain
Charset: utf-8

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[];
}