()
| 527 | <button |
| 528 | type="submit" |
| 529 | disabled={!canSubmit || !hasRequiredKeys || isSubmitting || Boolean(roomAi && (!roomAi.connected || !roomAi.ready))} |
| 530 | className="inline-flex h-11 w-full items-center justify-center gap-2 rounded-xl bg-[#F95F4A] px-3 text-[13px] font-semibold text-white transition-colors hover:bg-[#ff735f] disabled:cursor-not-allowed disabled:bg-white/10 disabled:text-[#71717a]" |
| 531 | > |
| 532 | {isSubmitting ? ( |
| 533 | <Loader2 size={15} className="animate-spin" /> |
| 534 | ) : null} |
| 535 | {isSubmitting |
| 536 | ? "Starting…" |
| 537 | : needsTakeover |
| 538 | ? "Resume notes" |
| 539 | : roomAi && (needsProviderKey || missingTextProviders.length > 0) ? "Share & start notes" : "Start notes"} |
| 540 | </button> |
| 541 | {setupError ? <p role="alert" className="text-[11.5px] text-red-300">{setupError}</p> : null} |
| 542 | {roomAi ? ( |
| 543 | <button |
| 544 | type="button" |
| 545 | onClick={onOpenSettings} |
| 546 | className="inline-flex w-full items-center justify-center gap-1.5 py-1 text-[11.5px] text-[#d4d4d8] hover:text-white" |
| 547 | > |
| 548 | <Settings2 size={13} /> |
| 549 | Room AI settings |
| 550 | </button> |
| 551 | ) : null} |
| 552 | </div> |
| 553 | </form> |
| 554 | )} |
nothing calls this directly
no outgoing calls
no test coverage detected