'use client';
import{jsx as e,Fragment as r}from"react/jsx-runtime";import i from"../ThirdPartyPreview.js";import t from"../../configs/YotpoReviews.js";import{useMemo as o}from"react";let g={reviews:"Reviews","star-rating":"Star Badge",badge:"Star Badge",reviewHighlights:"Review Highlights"},a=({setting:a})=>{let p=a?.widgetType&&g[a.widgetType],s=o(()=>p?`${t.label} - ${p}`:t.label,[p]);return e(r,{children:e("div",{className:"gp-p-2",children:e(i,{setting:{label:s,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${t.logoUrl}">`}})})})};export{a as default};
