@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
10 lines (9 loc) • 307 B
TypeScript
import { ReportReasonKey } from "../../constants/reportReasons";
declare function useCreateReport({ type }: {
type: "comment" | "entity";
}): ({ targetId, reason, details, }: {
targetId: string;
reason: ReportReasonKey;
details?: string;
}) => Promise<void>;
export default useCreateReport;