@contentstack/live-preview-utils
Version:
Contentstack provides the Live Preview SDK to establish a communication channel between the various Contentstack SDKs and your website, transmitting live changes to the preview pane.
20 lines (16 loc) • 577 B
text/typescript
import React from 'preact/compat';
import { JSX } from 'preact';
import { iconComponents } from '../../icons/CollabIcons.cjs';
/** @jsxImportSource preact */
type IconName = keyof typeof iconComponents;
interface IconProps {
icon: IconName;
tooltipContent?: string;
className?: string;
withTooltip?: boolean;
onClick?: JSX.MouseEventHandler<HTMLDivElement>;
testId?: string;
disabled?: boolean;
}
declare const Icon: ({ withTooltip, tooltipContent, testId, ...props }: IconProps) => React.JSX.Element;
export { type IconProps, Icon as default };