UNPKG

@replyke/core

Version:

Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.

15 lines (14 loc) 477 B
import { ReportReasonKey } from "../../constants/reportReasons"; declare function useCreateReport(): { createCommentReport: ({ targetId, reason, details, }: { targetId: string; reason: ReportReasonKey; details?: string; }) => Promise<void>; createEntityReport: ({ targetId, reason, details, }: { targetId: string; reason: ReportReasonKey; details?: string; }) => Promise<void>; }; export default useCreateReport;