

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

import '../constants.dart';
import '../widgets/desktop/desktop_my_support.dart';
import '../widgets/mobile/mobile_my_support.dart';

class MySupport extends StatelessWidget {
  final int businessId;

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

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

}