8 lines
251 B
TypeScript
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();
|
|
}
|