Skip to content

Conversation

@alamenai
Copy link
Contributor

What

In the current implementation of AudioPlayerButton, we render the PlayButton twice with the same props with only one different conditional prop.

In addition to that, the logic of events and conditions is implemented in inline way which reduces the readability and make it hard for component testing in the future ( No components tests are implemented ).

Why

  1. To avoid duplicated rendering.
  2. To extract the logic of events.

@vercel
Copy link
Contributor

vercel bot commented Dec 20, 2025

@alamenai is attempting to deploy a commit to the ElevenLabs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant