@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.
21 lines (17 loc) • 657 B
text/typescript
import React from 'preact/compat';
import { IActiveThread } from '../types/collab.types.cjs';
/** @jsxImportSource preact */
interface UseCollabPopupProps {
newThread?: boolean;
thread?: IActiveThread;
}
declare const useCollabIndicator: ({ newThread, thread, }: UseCollabPopupProps) => {
buttonRef: React.RefObject<HTMLButtonElement>;
popupRef: React.RefObject<HTMLDivElement>;
showPopup: boolean;
setShowPopup: React.Dispatch<React.SetStateAction<boolean>>;
activeThread: IActiveThread;
setActiveThread: React.Dispatch<React.SetStateAction<IActiveThread>>;
togglePopup: () => void;
};
export { useCollabIndicator };