I’d like to make these previous-next topic button keyboard shortcuts into a theme component that provides << Prev Topic and Next Topic >> buttons in the header.
Can anyone suggest an existing theme component with a code snippet that provides a button that simply activates an existing keyboard shortcut?
You probably don’t want to create a separate component for the back button and handle all of the logic in the same component. Just extend the existing template and js file as needed. Otherwise you will likely end up with three templates instead of one which would seem excessive for such a small “component”?
Yeah we are using a different definition of Component here in dev
This is a different Glimmer Component.
So one Theme Component containing one Glimmer Component. You were about to create an extra one?
I suggest you edit the same file, which will need two actions not one. And perhaps the label can only appear if the back button is not activated in the new setting?