feat: expose hasAnyLocalData on DataImportUseCase

Thin pass-through to the existing LocalDataBackupRepository.hasAnyUserData()
port, needed by F2 to decide whether the import confirmation can be
simplified per UX cadrage (#84) when the device has no local data yet.
This commit is contained in:
2026-07-22 13:54:30 +02:00
parent 77b271803d
commit f7d32a34c2

View File

@ -188,6 +188,8 @@ final class DataImportUseCase {
return codec.preview(bytes);
}
Future<bool> hasAnyLocalData() => repository.hasAnyUserData();
Future<LocalBackupImportResult> importFrom(
Uint8List bytes, {
required LocalBackupImportMode mode,