Instead of a button component, create a hook that exposes the browser and it's correct links.
This makes it far more flexible and makes it easy to prevent "layout shifting".
In the current situation the homepage jumps on multiple places because the "get alby" buttons have to load.
In the new situation a sane default is shown and prevents the layout shifting which makes it feel more professional.
This also makes the <ClientOnly> component obsolete, so we don't need the utils lib anymore.
Instead of a button component, create a hook that exposes the browser and it's correct links. This makes it far more flexible and makes it easy to prevent "layout shifting".
In the current situation the homepage jumps on multiple places because the "get alby" buttons have to load. In the new situation a sane default is shown and prevents the layout shifting which makes it feel more professional.
This also makes the
<ClientOnly>
component obsolete, so we don't need the utils lib anymore.