@tinacms/toolkit
Version:
Tina is a lightweight but powerful toolkit for creating a site editing ui with javascript components. Tina surfaces superpowers for dev’s to create, expand on and customize a simple yet intuitive ui for editing content.
24 lines (20 loc) • 546 B
TypeScript
/**
*/
/// <reference types="react" />
import { Plugin } from '../core';
/**
* A Higher-Order-Component for adding Plugins to the CMS.
*
* @param Component A React Component
* @param plugin Plugin
* @alias withPlugin
*/
export declare function withPlugins(Component: any, plugins: Plugin | Plugin[]): (props: any) => JSX.Element;
/**
* A Higher-Order-Component for adding Plugins to the CMS.
*
* @param Component A React Component
* @param plugin Plugin
* @alias withPlugins
*/
export declare const withPlugin: typeof withPlugins;