Illustrates the frontend component structure and its integration with blockchain and Firebase services for the KrishiSetu application.
graph TB
A[App.tsx] --> B[HomePage.tsx]
A --> C[LoginPage.tsx]
A --> D[SignupPage.tsx]
B --> E[FarmerDashboard.tsx]
B --> F[DistributorDashboard.tsx]
B --> G[RetailerDashboard.tsx]
B --> H[CustomerQRScanner.tsx]
E --> I[Blockchain Service]
F --> I
G --> I
H --> I
I --> J[Smart Contract]
I --> K[Firebase]
style A fill:#e1f5fe
style I fill:#f3e5f5
style J fill:#e8f5e8
style K fill:#fff3e0
This diagram illustrates the frontend component hierarchy of the KrishiSetu application, starting from the main App.tsx to specific dashboards and a QR scanner. It also shows how these components interact with a central 'Blockchain Service', which then connects to a 'Smart Contract' and 'Firebase' for backend operations.
Use this diagram to visualize the high-level architecture of a decentralized application (dApp) or any application with distinct frontend roles and backend service integrations. It's useful for onboarding new developers, planning feature development, or presenting the system's structure.
Adapt this diagram by replacing specific page components with your application's unique views and dashboards. Modify the backend services (e.g., 'Blockchain Service', 'Smart Contract', 'Firebase') to reflect your actual technology stack, such as different blockchain networks, specific smart contract functions, or alternative database/backend-as-a-service providers.