@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
TypeScript
import { ReportReasonKey } from "../../constants/reportReasons";
declare function useSubmitReport(): {
submitCommentReport: ({ targetId, reason, details, }: {
targetId: string;
reason: ReportReasonKey;
details?: string;
}) => Promise<void>;
submitEntityReport: ({ targetId, reason, details, }: {
targetId: string;
reason: ReportReasonKey;
details?: string;
}) => Promise<void>;
};
export default useSubmitReport;