tinacms
Version:
[](https://github.com/tinacms/tinacms/blob/main/LICENSE) [](https://www.npmjs.com/package/tinacms) [![Bui
40 lines (39 loc) • 923 B
TypeScript
import { Plugin } from '../core';
import type { IconType } from 'react-icons';
/**
* Represents a TinaCloud Config that should be accessible via the CMS.
*
* The purpose of these configs is to give a way to display & edit information
* about TinaCloud Configuration
* cases may include:
*
* * TinaCloud Project Configuration
* * User Management
*/
export interface CloudConfigPlugin extends Plugin {
__type: 'cloud-config';
text?: string;
Icon: any;
link: {
text: string;
href: string;
};
}
/**
* An options object used to create Cloud Config Plugins.
*/
export interface CloudConfigOptions {
name: string;
text?: string;
link: {
text: string;
href: string;
};
Icon?: IconType;
}
/**
* Creates cloud config plugins.
*
* @param options
*/
export declare function createCloudConfig({ ...options }: CloudConfigOptions): CloudConfigPlugin;