Constructor
# <PracticeMusicHeader currentView currentPart partList onPartChange switchToPractice switchToPerformance doesUserGetFeedback />
Renders the PracticeMusicHeader component.
This component is used when a user is practicing music or practicing an exercise.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
currentView |
enum | No | The current music view | |
currentPart |
string | No | The currently selected part (track) of the sheet music (e.g. Alto) | |
partList |
arrayOf | No | The list of all available parts (tracks) for the sheet music | |
onPartChange |
func | No | Part change handler | |
switchToPractice |
func | No | Switch to practice handler | |
switchToPerformance |
func | Yes | Switch to performance handler | |
doesUserGetFeedback |
bool | Yes | Indicates if the user gets feedback |
Methods
# inner getPartSelectionDropdownOrPracticeMusicButton()
Gets the correct component for the left side of the header