@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.
19 lines (15 loc) • 413 B
TypeScript
import React from 'preact/compat';
/** @jsxImportSource preact */
type AvatarProps = {
avatar: AvatarData;
type?: "text" | "image";
testId?: string;
};
type AvatarData = {
id: number;
name: string;
image?: string;
email?: string;
};
declare function Avatar({ avatar, type, testId, }: AvatarProps): React.JSX.Element;
export { type AvatarData, type AvatarProps, Avatar as default };