MCPcopy
hub / github.com/vercel/next-forge / OpenInClaude

Function OpenInClaude

docs/components/ai-elements/open-in-chat.tsx:269–285  ·  view source on GitHub ↗
(props: OpenInClaudeProps)

Source from the content-addressed store, hash-verified

267export type OpenInClaudeProps = ComponentProps<typeof DropdownMenuItem>;
268
269export const OpenInClaude = (props: OpenInClaudeProps) => {
270 const { query } = useOpenInContext();
271 return (
272 <DropdownMenuItem asChild {...props}>
273 <a
274 className="flex items-center gap-2"
275 href={providers.claude.createUrl(query)}
276 rel="noopener"
277 target="_blank"
278 >
279 <span className="shrink-0">{providers.claude.icon}</span>
280 <span className="flex-1">{providers.claude.title}</span>
281 <ExternalLinkIcon className="size-4 shrink-0" />
282 </a>
283 </DropdownMenuItem>
284 );
285};
286
287export type OpenInT3Props = ComponentProps<typeof DropdownMenuItem>;
288

Callers

nothing calls this directly

Calls 1

useOpenInContextFunction · 0.85

Tested by

no test coverage detected