tinacms
Version:
> The Fastest Way to Edit Next.js Content
19 lines (18 loc) • 536 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;