@readr-media/react-feedback
Version:
## Installation `yarn install`
26 lines • 1.08 kB
TypeScript
/**
* @typedef {import('../../../typedef').Comment} Comment
* @typedef {import('../../../typedef').CommentManager} CommentManager
* @typedef {CommentManager['loadMoreComments']} ExpandFunc
*
* @param {Object} props
* @param {Comment[]} props.comments
* @param {ExpandFunc} props.onExpand
* @param {boolean} props.noMoreComment
* @param {string} [props.listTitle='網友回饋']
* @param {boolean} [props.shouldShowControl=true]
* @param {string} [props.defaultText]
* @return {JSX.Element}
*/
export default function Comments({ comments, onExpand, noMoreComment, listTitle, shouldShowControl, defaultText, }: {
comments: Comment[];
onExpand: ExpandFunc;
noMoreComment: boolean;
listTitle?: string;
shouldShowControl?: boolean;
defaultText?: string;
}): JSX.Element;
export type Comment = import('../../../typedef').Comment;
export type CommentManager = import('../../../typedef').CommentManager;
export type ExpandFunc = CommentManager['loadMoreComments'];
//# sourceMappingURL=comments.d.ts.map