@atlaskit/editor-common
Version:
A package that contains common classes and components for editor and renderer
21 lines (20 loc) • 778 B
TypeScript
import React from 'react';
import type { ReactNode } from 'react';
export interface SyncBlockActionsContextValue {
deleteSyncBlock?: () => void;
fetchSourceInfo: (sourceAri: string, hasAccess: boolean) => Promise<{
title?: string;
url?: string;
} | undefined>;
}
export declare const useSyncBlockActions: () => SyncBlockActionsContextValue | null;
interface SyncBlockActionsProviderProps {
children: ReactNode;
fetchSyncBlockSourceInfo: (sourceAri: string) => Promise<{
title?: string;
url?: string;
} | undefined>;
removeSyncBlock?: () => void;
}
export declare const SyncBlockActionsProvider: ({ children, removeSyncBlock, fetchSyncBlockSourceInfo, }: SyncBlockActionsProviderProps) => React.JSX.Element;
export {};