import type { LocalTask } from './task-store'; /** A row is dirty when its content changed or its acknowledgement belongs to another vault. */ export const isDirty = (task: LocalTask, vaultId?: string): boolean => (vaultId !== undefined && task.syncedVaultId !== vaultId) || task.updatedAt > (task.syncedAt ?? -1);