@selfcommunity/react-core
Version:
React Core Components useful for integrating UI Community components (react-ui).
22 lines (21 loc) • 625 B
TypeScript
/// <reference types="react" />
import { SCCommentType } from '@selfcommunity/types';
import { CacheStrategies } from '@selfcommunity/utils';
/**
:::info
This custom hooks is used to fetch a comment.
:::
* @param object
* @param object.id
* @param object.commentObject
* @param object.cacheStrategy
*/
export default function useSCFetchCommentObject({ id, commentObject, cacheStrategy, }: {
id?: number;
commentObject?: SCCommentType;
cacheStrategy?: CacheStrategies;
}): {
obj: SCCommentType;
setObj: import("react").Dispatch<import("react").SetStateAction<SCCommentType>>;
error: string;
};