UNPKG

@sanity/desk-tool

Version:

Tool for managing all sorts of content in a structured manner

8 lines 460 B
import { SchemaType } from '@sanity/types'; import React from 'react'; /** * Return `false` if we explicitly disable the icon. * Otherwise return the passed icon or the schema type icon as a backup. */ export declare function getIconWithFallback(icon: React.ComponentType<any> | false | undefined, schemaType: SchemaType | undefined, defaultIcon: React.ComponentType<any>): React.ComponentType<any> | false; //# sourceMappingURL=getIconWithFallback.d.ts.map