UNPKG

tinacms

Version:

[![GitHub license](https://img.shields.io/github/license/tinacms/tinacms?color=blue)](https://github.com/tinacms/tinacms/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/tinacms.svg?style=flat)](https://www.npmjs.com/package/tinacms) [![Bui

40 lines (39 loc) 923 B
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;