'use client';
import{jsx as e}from"react/jsx-runtime";import r from"../ThirdPartyPreview.js";import t from"../../configs/Opinew.js";import{useMemo as i}from"react";import{WidgetOptions as p}from"../../settings/Opinew/index.js";let OpinewSampleContent=({setting:o})=>{let n=Object.fromEntries(p.map(({label:e,value:r})=>[r,e])),m=o?.widgetType&&n[o.widgetType],s=i(()=>m?`${t.label} - ${m}`:t.label,[m]);return e("div",{className:"gp-p-2",children:e(r,{setting:{label:s,iconSvg:`<img class="gp-w-[24px] gp-border gp-border-[#494949] gp-rounded-[3px]" src="${t.logoUrl}">`}})})};export{OpinewSampleContent as default};
