Files
dbx/src/lib/historyActions.ts
T

8 lines
251 B
TypeScript

export function shouldDeleteHistoryEntry(confirmDelete: () => boolean): boolean {
return confirmDelete();
}
export function shouldClearHistory(entryCount: number, confirmClear: () => boolean): boolean {
return entryCount > 0 && confirmClear();
}