'use client';
import{jsx as e,Fragment as a}from"react/jsx-runtime";import g from"../ThirdPartyPreview.js";import t from"../../configs/Stamped.js";import{useMemo as i}from"react";let mapWidgetLabel={"main-widget":"Main Widget","badge-single":"Badge Single","badge-double":"Badge Double","badge-ribbon":"Badge Ribbon","product-rating":"Product Rating",carousel:"Carousel","full-page":"Full Page","visual-gallery":"Visual Gallery","wall-photos":"Wall Photos","site-badge":"Site Badge","instagram-feed":"Instagram Feed","checkout-reviews":"Checkout Reviews","single-highlight":"Single Highlight","top-rated":"Top Rated","star-rating-badge":"Star Rating"},mapWidgetLabelV2={"main-widget":"Main Widget","product-rating-image":"Product Rating","badge-double-image":"Badge Double","badge-ribbon-image":"Badge Ribbon","badge-single-image":"Badge Single",carousel:"Carousel","full-page":"Full Page","site-badge":"Site Badge","star-rating-badge":"Star Rating","visual-gallery":"Visual Gallery","wall-photos":"Wall Photos","instagram-feed":"Instagram Feed","single-highlight":"Single Highlight","top-rated":"Top Rated","checkout-comments":"Checkout Comments"},StampedSampleContent=({setting:l})=>{let d=l?.version,r="v1"===d?l?.widgetType&&mapWidgetLabel[l.widgetType]:l?.widgetTypeV2&&mapWidgetLabelV2[l.widgetTypeV2],o=i(()=>r?`${t.label} - ${r}`:t.label,[r]);return e(a,{children:e("div",{className:"gp-p-2",children:e(g,{setting:{label:o,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${t.logoUrl}">`}})})})};export{StampedSampleContent as default};
