UNPKG

@desci-labs/frontend-components

Version:

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

21 lines 1.01 kB
import { default as React } from 'react'; import { NodesUserProfile } from '../../profile/types'; interface CommentInputProps { /** The profile of the user */ profile: NodesUserProfile; /** Whether the user is signed in */ signedIn: boolean; /** Whether the comment is being posted, used to show the loader for submit button */ isPostingComment: boolean; /** The comment text */ comment: string; /** The function to handle the comment change */ handleCommentChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void; /** The function to handle the comment submit */ handleCommentSubmit: () => void; /** The component to display for draft highlights */ DraftHighlights?: React.ReactNode; } export declare const CommentInput: ({ profile, signedIn, DraftHighlights, comment, handleCommentChange, handleCommentSubmit, isPostingComment }: CommentInputProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=CommentInput.d.ts.map