MCPcopy
hub / github.com/callumalpass/tasknotes / createTaskModalReminderDraft

Function createTaskModalReminderDraft

src/modals/taskModalActionMenus.ts:133–148  ·  view source on GitHub ↗
(
	state: TaskModalActionMenuState,
	taskBase?: TaskInfo
)

Source from the content-addressed store, hash-verified

131}
132
133export function createTaskModalReminderDraft(
134 state: TaskModalActionMenuState,
135 taskBase?: TaskInfo
136): TaskInfo {
137 return {
138 ...taskBase,
139 title: state.title,
140 status: state.status,
141 priority: state.priority,
142 due: state.dueDate,
143 scheduled: state.scheduledDate,
144 path: taskBase?.path || "",
145 archived: taskBase?.archived || false,
146 reminders: state.reminders,
147 };
148}
149
150function getDateValue(
151 state: TaskModalActionMenuState,

Calls

no outgoing calls

Tested by

no test coverage detected