(props: OpenInT3Props)
| 287 | export type OpenInT3Props = ComponentProps<typeof DropdownMenuItem>; |
| 288 | |
| 289 | export 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 | |
| 307 | export type OpenInSciraProps = ComponentProps<typeof DropdownMenuItem>; |
| 308 |
nothing calls this directly
no test coverage detected