import{r as s,j as e}from"./vendor-react-AXa6hZO5.js";import{T as o,n as r,A as i,B as t,o as n}from"./index-C_tZnXTW.js";import{u as a,M as d}from"./vendor-intl-BdADXLLt.js";import{u as m}from"./c2591c98b-9UrrTnB9.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-zod-CMvj0_Fd.js";import"./cec18ad9a-DiLjrOUd.js";import"./vendor-radix-glKlawmm.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./vendor-luxon-D0OkDiyb.js";import"./tree-sitter-BFuuT2ac.js";import"./c51f8bc6d-BS9P5nN1.js";const c=s.memo(({skill:c,hideTryButton:l=!1})=>{const p=a(),j=m(),u=s.useCallback(()=>{const s=new URLSearchParams({q:`/${c.name}`});j.push(`${o}?${s.toString()}`)},[j,c.name]);return e.jsx(r,{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:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsxs(t,{variant:"secondary",className:"gap-1",onClick:u,children:[e.jsx(n,{size:16}),e.jsx(d,{defaultMessage:"Try in Cowork",id:"la/kX21r6k"})]})})})});c.displayName="BuiltInSkillDetailPanel";export{c as BuiltInSkillDetailPanel};
