UNPKG

@desci-labs/frontend-components

Version:

A library for commonly used components on the DeSci Frontend web apps

38 lines 1.97 kB
import { default as React } from 'react'; interface TopicsProps { /** Whether to show the no topics message */ showNoTopicsMessage?: boolean; /** Whether to show the refresh button */ showRefreshButton?: boolean; /** The function to be called when the refresh button is clicked */ handleRefreshTopicButtonClick?: () => void; /** Whether new topics are available */ newTopicsAvailable?: boolean; /** Whether the topics are being calculated */ isCalculating?: boolean; /** The topics */ topics: string[]; /** Whether to show the remove topic button */ showRemoveTopicButton?: boolean; /** The function to be called when the remove topic button is clicked */ handleRemoveTopicClick?: (value: string) => void; /** The function to be called when the topic is submitted */ onTopicSubmit?: (e: React.FormEvent<HTMLFormElement>) => void; /** Whether to show the add topic button */ showAddTopicButton?: boolean; /** Whether to show the creating topic button */ creatingTopic?: boolean; /** The function to be called when the creating topic button is clicked */ setCreatingTopic?: (creatingTopic: 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, changes display of the component */ prepubView?: boolean; } export declare const Topics: ({ showNoTopicsMessage, showRefreshButton, handleRefreshTopicButtonClick, newTopicsAvailable, isCalculating, topics, showRemoveTopicButton, handleRemoveTopicClick, creatingTopic, setCreatingTopic, inputStr, setInputStr, onTopicSubmit, showAddTopicButton, ref, prepubView, }: TopicsProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=Topics.d.ts.map