(props: OpenInv0Props)
| 327 | export type OpenInv0Props = ComponentProps<typeof DropdownMenuItem>; |
| 328 | |
| 329 | export 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 | |
| 347 | export type OpenInCursorProps = ComponentProps<typeof DropdownMenuItem>; |
| 348 |
nothing calls this directly
no test coverage detected