-
{
- if (!onDetectChords || detectingChords) {
- return;
- }
- setShowSpecMenu(false);
- void onDetectChords();
- }}
- aria-disabled={!onDetectChords || detectingChords}
- >
- {detectingChords ? 'Detecting chords...' : 'Detect chords...'}
-
+ {onDetectChords && (
+
{
+ if (detectingChords) {
+ return;
+ }
+ setShowMoreMenu(false);
+ void onDetectChords();
+ }}
+ aria-disabled={detectingChords}
+ >
+ {detectingChords ? 'Detecting chords...' : 'Detect chords...'}
+
+ )}
+ {onDetectTempo && (
+
{
+ if (detectingTempo) {
+ return;
+ }
+ setShowMoreMenu(false);
+ void onDetectTempo();
+ }}
+ aria-disabled={detectingTempo}
+ >
+ {detectingTempo ? 'Detecting tempo...' : 'Detect tempo...'}
+
+ )}