mirrored_repositories/FlutterEbookApp/lib/src/features/explore/presentation/ui
import 'package:auto_route/auto_route.dart';
import 'package:flutter/material.dart';
import 'package:flutter_ebook_app/src/common/common.dart';
import 'package:flutter_ebook_app/src/features/features.dart';

class ExploreScreenLarge extends StatelessWidget {
  const ExploreScreenLarge({super.key});

  @override
  Widget build(BuildContext context) {
    final isNestedEmpty = context.watchRouter.topRoute.name == 'ExploreRoute';

    return AnimatedPageSplitter(
      isExpanded: !isNestedEmpty,
      leftChild: const ExploreScreenSmall(),
      rightChild: const AutoRouter(),
    );
  }
}
