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

Function OpenInv0

docs/components/ai-elements/open-in-chat.tsx:329–345  ·  view source on GitHub ↗
(props: OpenInv0Props)

Source from the content-addressed store, hash-verified

327export type OpenInv0Props = ComponentProps<typeof DropdownMenuItem>;
328
329export const OpenInv0 = (props: OpenInv0Props) => {
330 const { query } = useOpenInContext();
331 return (
332 <DropdownMenuItem asChild {...props}>
333 <a
334 className="flex items-center gap-2"
335 href={providers.v0.createUrl(query)}
336 rel="noopener"
337 target="_blank"
338 >
339 <span className="shrink-0">{providers.v0.icon}</span>
340 <span className="flex-1">{providers.v0.title}</span>
341 <ExternalLinkIcon className="size-4 shrink-0" />
342 </a>
343 </DropdownMenuItem>
344 );
345};
346
347export type OpenInCursorProps = ComponentProps<typeof DropdownMenuItem>;
348

Callers

nothing calls this directly

Calls 1

useOpenInContextFunction · 0.85

Tested by

no test coverage detected