'use client';
import{jsx as e}from"react/jsx-runtime";import a from"../ThirdPartyPreview.js";import i from"../../configs/FeraReviews.js";import{useMemo as t}from"react";import{FERA_VERSION as r}from"../../types.js";let mapWidgetLabelV2={productReviews:"Product Reviews",testimonialCarousel:"Testimonial Carousel",allReviews:"All Reviews",averageStoreRatingBadge:"Average Store Rating Badge",inStoreMedia:"In Store Media",averageRatingBadge:"Average Rating Badge",productPageMedia:"Product Page Media"},mapWidgetLabelV3={allReviews:"All Reviews",testimonialCarousel:"Testimonial Carousel",mediaGallery:"Media Gallery",productDetailRating:"Product Detail Rating",productReviews:"Product Reviews",productCollectionRating:"Product Collection Rating",otherWidget:"Other"},FeraReviewsSampleContent=({setting:l})=>{let o=l?.feraVersion||r.V2,d=o===r.V3?mapWidgetLabelV3[l?.widgetTypeV3||"allReviews"]:mapWidgetLabelV2[l?.widgetType||"allReviews"],g=t(()=>d?`${i.label} - ${o} - ${d}`:i.label,[d,o]);return e("div",{className:"gp-p-2",children:e(a,{setting:{label:g,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${i.logoUrl}">`}})})};export{FeraReviewsSampleContent as default};
