import{r as e,j as s}from"./vendor-react-AXa6hZO5.js";import{T as r,r as o,A as i,s as t}from"./index-D35RxkWr.js";import{u as n,M as a}from"./vendor-intl-BdADXLLt.js";import{u as d,B as m}from"./c70a3d12b-BI7Bbafv.js";import"./vendor-infra-DayZK7Ds.js";import"./vendor-zod-1gcJXWab.js";import"./c6eedc03a-C8LSdtro.js";import"./vendor-lodash-D-zrMTUO.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-DsiQAprm.js";import"./vendor-motion-DGh7M6mr.js";import"./vendor-radix-jAWPQP1f.js";import"./vendor-router-B4CxQ1po.js";import"./vendor-query-B8PP3rYl.js";import"./vendor-growthbook-XJcBFzji.js";import"./c365fd3fe-Dmpsm876.js";import"./vendor-luxon-Y8l99kBI.js";import"./tree-sitter-BFuuT2ac.js";const c=e.memo(({skill:c,hideTryButton:l=!1})=>{const p=n(),j=d(),u=e.useCallback(()=>{const e=new URLSearchParams({q:`/${c.name}`});j.push(`${r}?${e.toString()}`)},[j,c.name]);return s.jsx(o,{name:c.name,addedBy:i.Anthropic,description:c.description?{content:c.description,tooltip:p.formatMessage({defaultMessage:"Claude uses these descriptions when deciding which skills to use in chat.",id:"g08yMBD/54"})}:void 0,children:l?null:s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsxs(m,{variant:"secondary",className:"gap-1",onClick:u,children:[s.jsx(t,{size:16}),s.jsx(a,{defaultMessage:"Try in Cowork",id:"la/kX21r6k"})]})})})});c.displayName="BuiltInSkillDetailPanel";export{c as BuiltInSkillDetailPanel};
