import BaseSwiper from './BaseSwiperForTabs';

interface BaseSingleTabProps {
    data:any;
    title:string,
    sub_title:string;
    text:string
}


const BaseSingleTab = ({data,title,sub_title,text}:BaseSingleTabProps) => {
  const {t} = useTranslation();


  return (
    <div className='checkout_single_tab'>
      <div className="details">
        <h1>{t(title)}</h1>
        <h2>{t(sub_title)}</h2>
        <p>{t(text)}</p>

      </div>
      <BaseSwiper data={data} isLoading={false}/>
    </div>
  )
}

export default BaseSingleTab