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

Function OpenInScira

docs/components/ai-elements/open-in-chat.tsx:309–325  ·  view source on GitHub ↗
(props: OpenInSciraProps)

Source from the content-addressed store, hash-verified

307export type OpenInSciraProps = ComponentProps<typeof DropdownMenuItem>;
308
309export const OpenInScira = (props: OpenInSciraProps) => {
310 const { query } = useOpenInContext();
311 return (
312 <DropdownMenuItem asChild {...props}>
313 <a
314 className="flex items-center gap-2"
315 href={providers.scira.createUrl(query)}
316 rel="noopener"
317 target="_blank"
318 >
319 <span className="shrink-0">{providers.scira.icon}</span>
320 <span className="flex-1">{providers.scira.title}</span>
321 <ExternalLinkIcon className="size-4 shrink-0" />
322 </a>
323 </DropdownMenuItem>
324 );
325};
326
327export type OpenInv0Props = ComponentProps<typeof DropdownMenuItem>;
328

Callers

nothing calls this directly

Calls 1

useOpenInContextFunction · 0.85

Tested by

no test coverage detected