import{j as i}from"./BL9F-HQ1.js";import{a as u,b as m,c as p}from"./BSWQ-uvG.js";import{S}from"./D90_66je.js";function f({namespace:t,reponame:o}){const{data:r}=u({namespace:t,name:o}),{has_starred:s,star_count:a}=r??{},e=m({namespace:t,name:o}),n=p({namespace:t,name:o});return i.jsx(S,{isStarred:s,starCount:a,onToggleStar:()=>{s?n.mutate():e.mutate()}})}export{f as S};