@desci-labs/frontend-components
Version:
A library for commonly used components on the DeSci Frontend web apps
39 lines • 2.09 kB
TypeScript
import { default as React } from 'react';
interface KeywordsProps {
/** Whether to show the no keywords message */
showNoKeywordsMessage?: boolean;
/** Whether to show the refresh button */
showRefreshButton?: boolean;
/** The function to be called when the refresh button is clicked */
handleRefreshKeywordButtonClick?: () => void;
/** Whether new keywords are available */
newKeywordsAvailable?: boolean;
/** Whether the keywords are being calculated */
isCalculating?: boolean;
/** The keywords */
keywords: string[];
/** Whether to show the remove keyword button */
showRemoveKeywordButton?: boolean;
/** The function to be called when the remove keyword button is clicked */
handleRemoveKeywordClick?: (value: string) => void;
/** The function to be called when the keyword is submitted */
onKeywordSubmit?: (e: React.FormEvent<HTMLFormElement>) => void;
/** Whether to show the add keyword button */
showAddKeywordButton?: boolean;
/** Whether to show the creating keyword button */
creatingKeyword?: boolean;
/** The function to be called when the creating keyword button is clicked */
setCreatingKeyword?: (creatingKeyword: boolean) => void;
/** The input string */
inputStr?: string;
/** The function to be called when the input string is changed */
setInputStr?: (inputStr: string) => void;
/** The ref to the form */
ref?: React.RefObject<HTMLFormElement | null>;
/** Whether the component is in prepub view */
prepubView?: boolean;
}
export declare const Keywords: ({ showNoKeywordsMessage, showRefreshButton, handleRefreshKeywordButtonClick, newKeywordsAvailable, isCalculating, keywords, showRemoveKeywordButton, handleRemoveKeywordClick, creatingKeyword, setCreatingKeyword, inputStr, setInputStr, onKeywordSubmit, showAddKeywordButton, ref, prepubView, }: KeywordsProps) => import("react/jsx-runtime").JSX.Element;
export declare function AnalyticsLoader(): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=Keywords.d.ts.map