(props: OpenInSciraProps)
| 307 | export type OpenInSciraProps = ComponentProps<typeof DropdownMenuItem>; |
| 308 | |
| 309 | export 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 | |
| 327 | export type OpenInv0Props = ComponentProps<typeof DropdownMenuItem>; |
| 328 |
nothing calls this directly
no test coverage detected