import{jsx as t}from"react/jsx-runtime";import e from"../../../../text/components/Text.js";import{getSellingPlanLabelAttrs as r}from"../common/attrs.js";import{SubscriptionEnum as l}from"../../../constants/index.js";let s=({setting:s,styles:o,id:m})=>{let{sellingTitle:n,sellingTitleOneTime:p,sellingType:a}=s??{},i=a===l.ONE_TIME,{typo:x,textAlign:c,direction:g}=r({styles:o,sellingType:a});return t("label",{htmlFor:m,children:t(e,{className:"gp-flex-1",textClassWrapper:"gp-leading-[24px]",styles:{typo:x,textAlign:c,direction:g},setting:{text:i?p:n}})})};export{s as SellingPlanLabel};
