useWaiverSync
Source:hooks/commits/useWaiverSync.ts
The useWaiverSync hook synchronizes the waiver configuration between the (penaltywaiver) route group screens and the useTaskDraftStore.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Syncs waiver configuration from waiver sub-screens to the draft store.
hooks/commits/useWaiverSync.ts
The useWaiverSync hook synchronizes the waiver configuration between the (penaltywaiver) route group screens and the useTaskDraftStore.
penalty_waiver: {
type: "captcha" | "paragraph",
config: {
// captcha
count: number, // Number of CAPTCHAs to solve
difficulty: "easy" | "medium" | "hard",
// paragraph
text: string, // Text to transcribe
minAccuracy: number // Minimum character accuracy (0-1)
},
deadline_minutes: number // Time allowed to complete the challenge
}