import React from "react";

import ProductOption from "../../components/ProductOption";
import SingleOption from "../../SingleProduct/SingleOption";

export default function ThemeSingleOption({
  productData,
  productInfo,
  selectedIndex,
  soldoutFlag,
  logMenu
}) {
  return (
    <>
      <ProductOption
        productInfo={productInfo[selectedIndex]}
        thumbnailUrls={productInfo?.thumbnailUrl}
      >
        <SingleOption
          type="theme"
          selectedPatnrId={productData?.themeInfo[0]?.patnrId}
          selectedPrdtId={productInfo[selectedIndex]?.prdtId}
          productInfo={productInfo[selectedIndex]}
          patncNm={productData?.themeInfo[0]?.patncNm}
          selectedIndex={selectedIndex}
          isSpotlight={false}
          soldoutFlag={soldoutFlag}
          logMenu={logMenu}
        />
      </ProductOption>
    </>
  );
}
