usePenaltySync
Source:hooks/commits/usePenaltySync.ts
The usePenaltySync hook synchronizes the penalty configuration between the (penalties) route group sub-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 penalty configuration from penalty sub-screens to the draft store.
hooks/commits/usePenaltySync.ts
The usePenaltySync hook synchronizes the penalty configuration between the (penalties) route group sub-screens and the useTaskDraftStore.
penalty: {
type: "embarrassing_photo" | "send_email" | "send_money" | "direct_commit",
config: {
// embarrassing_photo
channel: "email" | "sms",
emailTo: string,
photoUrl: string,
// send_email
recipientEmail: string,
subject: string,
body: string,
// send_money
amount: number,
currency: string,
// direct_commit
blockDurationMinutes: number,
targetApps: string[]
}
}