import 'package:krow_domain/krow_domain.dart';
import '../../domain/repositories/certificates_repository.dart';

class CertificatesRepositoryMock implements CertificatesRepository {
  @override
  Future<List<StaffDocument>> getCertificates() async {
    final DateTime now = DateTime.now();

    // Create copies with dynamic dates
    final List<StaffDocument> dynamicDocuments = <StaffDocument>[
         StaffDocument(
        id: '1',
        documentId: 'background',
        staffId: 'current_user',
        name: 'Background Check',
        description: 'Required for all shifts',
        status: DocumentStatus.verified,
        expiryDate: now.add(const Duration(days: 365)),
      ),
      StaffDocument(
        id: '2',
        documentId: 'food_handler',
        staffId: 'current_user',
        name: 'Food Handler',
        description: 'Required for food service',
        status: DocumentStatus.verified,
        expiryDate: now.add(const Duration(days: 15)),
      ),
      const StaffDocument(
        id: '3',
        documentId: 'rbs',
        staffId: 'current_user',
        name: 'RBS Alcohol',
        description: 'Required for bar shifts',
        status: DocumentStatus.missing,
        expiryDate: null,
      ),
    ];
    
    await Future<void>.delayed(const Duration(seconds: 1)); // Simulate network delay
    return dynamicDocuments;
  }
}
