import React from 'react';
import HomeSwiper from './home-swiper/ui';
import HomeProcess from './home-process/ui';
import HomeNewProducts from './home-new-products/ui';
import HomeAbout from './home-about/ui';
import HomeCheckout from './home-checkout/ui';
import HomeConditions from './home-conditions/ui';
import { IBanner, ICategory, IProduct } from '@/shared/types/testApi';

interface WelcomeProps {
  data?: {
    bannerData?: IBanner[];
    categoryData?: ICategory[];
    productData?: IProduct[];
  };
}

const Welcome = ({ data }: WelcomeProps) => {
  return (
    <div className="overflow-x-hidden">
      <HomeSwiper bannerData={data?.bannerData} />
      <HomeProcess />
      <HomeNewProducts categoryData={data?.categoryData} />
      <HomeAbout />
      <HomeConditions />
      <HomeCheckout />
    </div>
  );
};

export default Welcome;
