/// Wrapper pour la page des organisations avec BLoC Provider
library organisations_page_wrapper;

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import '../../di/organizations_di.dart';
import '../../bloc/organizations_bloc.dart';
import 'organizations_page.dart';

/// Wrapper qui fournit le BLoC pour la page des organisations
class OrganizationsPageWrapper extends StatelessWidget {
  const OrganizationsPageWrapper({super.key});

  @override
  Widget build(BuildContext context) {
    return BlocProvider<OrganizationsBloc>(
      create: (context) => OrganizationsDI.getOrganizationsBloc(),
      child: const OrganizationsPage(),
    );
  }
}
