import{r as s,u as e,j as a,M as i}from"./vendor--leCAzSo.js";import{C as t}from"./c723dd3dd-58n3MxoB.js";import{a as r}from"./ca9c256b9-7brFE8T2.js";import{C as o,A as n}from"./c9a7e510b-CtbjnNY0.js";import{T as c,B as d}from"./index-DZuQva-j.js";import"./c57c2877c-dpgWZiV5.js";import"./cb5cdda9a-CSfiLIa6.js";import"./c51e217b4-KUwQQl_W.js";import"./tree-sitter-BFuuT2ac.js";const l=s.memo(({skill:l,hideTryButton:m=!1})=>{const p=e(),j=r(),u=s.useCallback(()=>{const s=new URLSearchParams({q:`/${l.name}`});j.push(`${c}?${s.toString()}`)},[j,l.name]);return a.jsx(o,{name:l.name,addedBy:n.Anthropic,description:l.description?{content:l.description,tooltip:p.formatMessage({defaultMessage:"Claude uses these descriptions when deciding which skills to use in chat.",id:"g08yMBD/54"})}:void 0,children:m?null:a.jsx("div",{className:"flex-1 flex items-center justify-center",children:a.jsxs(d,{variant:"secondary",className:"gap-1",onClick:u,children:[a.jsx(t,{size:16}),a.jsx(i,{defaultMessage:"Try in Cowork",id:"la/kX21r6k"})]})})})});l.displayName="BuiltInSkillDetailPanel";export{l as BuiltInSkillDetailPanel};
