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

Function OpenInT3

docs/components/ai-elements/open-in-chat.tsx:289–305  ·  view source on GitHub ↗
(props: OpenInT3Props)

Source from the content-addressed store, hash-verified

287export type OpenInT3Props = ComponentProps<typeof DropdownMenuItem>;
288
289export const OpenInT3 = (props: OpenInT3Props) => {
290 const { query } = useOpenInContext();
291 return (
292 <DropdownMenuItem asChild {...props}>
293 <a
294 className="flex items-center gap-2"
295 href={providers.t3.createUrl(query)}
296 rel="noopener"
297 target="_blank"
298 >
299 <span className="shrink-0">{providers.t3.icon}</span>
300 <span className="flex-1">{providers.t3.title}</span>
301 <ExternalLinkIcon className="size-4 shrink-0" />
302 </a>
303 </DropdownMenuItem>
304 );
305};
306
307export type OpenInSciraProps = ComponentProps<typeof DropdownMenuItem>;
308

Callers

nothing calls this directly

Calls 1

useOpenInContextFunction · 0.85

Tested by

no test coverage detected