import{M as c}from"./MkUserInfo-NOodgOlv.js";import{M as f}from"./MkPagination-urywMrXv.js";import{b as m,c as a,h as e,t as r,l as u,j as d,u as w,F as g,G as _,i as k}from"./vue-y3KLWBaS.js";import{n as h}from"./app-JmgyQoR0.js";const y={class:"users"},B=m({__name:"follow-list",props:{user:{},type:{}},setup(l){const s=l,n={endpoint:"users/following",limit:20,params:a(()=>({userId:s.user.id}))},i={endpoint:"users/followers",limit:20,params:a(()=>({userId:s.user.id}))};return(t,I)=>(e(),r("div",null,[u(f,{ref:"list",pagination:t.type==="following"?n:i,class:"mk-following-or-followers"},{default:d(({items:p})=>[w("div",y,[(e(!0),r(g,null,_(p.map(o=>t.type==="following"?o.followee:o.follower),o=>(e(),k(c,{key:o.id,class:"user",user:o},null,8,["user"]))),128))])]),_:1},8,["pagination"])]))}}),C=h(B,[["__scopeId","data-v-8181f189"]]);export{C as X};
