@hhgtech/hhg-components
Version:
Hello Health Group common components
17 lines (16 loc) • 599 B
TypeScript
/// <reference types="react" />
/// <reference types="lodash" />
export type PreviewUrlType = {
title?: string;
url?: string;
image?: string;
description?: string;
isFetching?: boolean;
};
export declare const usePreviewUrl: (bannedWords: string[], onChange: (v: string) => void) => {
previewUrl: PreviewUrlType;
setPreviewUrl: import("react").Dispatch<import("react").SetStateAction<PreviewUrlType>>;
invalidUrls: string[];
debounceInputModify: import("lodash").DebouncedFunc<(v: string) => void>;
fetchPreviewData: (url: string) => void;
};