0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/packages/console/src/consts/connectors.ts

23 lines
807 B
TypeScript
Raw Normal View History

import { AdminConsoleKey, I18nKey } from '@logto/phrases';
import { ConnectorPlatform, ConnectorType } from '@logto/schemas';
type TitlePlaceHolder = {
[key in ConnectorType]: I18nKey;
};
export const connectorTitlePlaceHolder: TitlePlaceHolder = Object.freeze({
[ConnectorType.SMS]: 'admin_console.connectors.type.sms',
[ConnectorType.Email]: 'admin_console.connectors.type.email',
[ConnectorType.Social]: 'admin_console.connectors.type.social',
});
type ConnectorPlatformLabel = {
[key in ConnectorPlatform]: AdminConsoleKey;
};
export const connectorPlatformLabel: ConnectorPlatformLabel = Object.freeze({
[ConnectorPlatform.Native]: 'connectors.platform.native',
[ConnectorPlatform.Universal]: 'connectors.platform.universal',
[ConnectorPlatform.Web]: 'connectors.platform.web',
});