UNPKG

@selfcommunity/react-core

Version:

React Core Components useful for integrating UI Community components (react-ui).

24 lines (23 loc) 753 B
/// <reference types="react" /> import { SCCourseCommentType, SCCourseLessonType } from '@selfcommunity/types'; import { CacheStrategies } from '@selfcommunity/utils'; /** :::info This custom hooks is used to fetch a course lesson comment. ::: * @param object * @param object.id * @param object.commentObject * @param object.lesson * @param object.cacheStrategy */ export default function useSCFetchLessonCommentObject({ id, commentObject, lesson, cacheStrategy, }: { id?: number; commentObject?: SCCourseCommentType; lesson: SCCourseLessonType; cacheStrategy?: CacheStrategies; }): { obj: SCCourseCommentType; setObj: import("react").Dispatch<import("react").SetStateAction<SCCourseCommentType>>; error: string; };