"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[9060],{79060:(e,t,i)=>{i.r(t),i.d(t,{default:()=>r});i(58878);var s=i(84720),l=i(98350),a=i(36459),d=i(88987),n=i(90782);const r=function(e){const{disabled:t,element:i,widgetMgr:r,width:c,fragmentId:h}=e,p={width:c},u="primary"===i.type?s.KX.PRIMARY:s.KX.SECONDARY,o=!i.help||c;return(0,n.jsx)("div",{className:"stButton","data-testid":"stButton",style:p,children:(0,n.jsx)(l.F,{help:i.help,children:(0,n.jsx)(a.Ay,{kind:u,size:s.Pj.SMALL,disabled:t,fluidWidth:!!i.useContainerWidth&&o,onClick:()=>r.setTriggerValue(i,{fromUi:!0},h),children:(0,n.jsx)(d.Y,{icon:i.icon,label:i.label})})})})}}}]);