

import 'package:flutter/material.dart';
import 'package:responsive_builder/responsive_builder.dart';

import '../constants.dart';
import '../widgets/desktop/desktop_my_addresses.dart';
import '../widgets/mobile/mobile_my_addresses.dart';

class MyAddresses extends StatelessWidget {
  final int businessId;

  const MyAddresses({Key? key, int? businessId}) :
      businessId = businessId ?? Constants.BUSINESS_ID;

  @override
  Widget build(BuildContext context) {
    return ResponsiveBuilder(
      builder: (context, sizingInformation) =>
        ScreenTypeLayout.builder(
          mobile: (context) => MobileMyAddresses(businessId: businessId,),
          tablet: (context) => DesktopMyAddresses(businessId: businessId,),
          desktop: (context) => DesktopMyAddresses(businessId: businessId,),
        ),
    );
  }

}