I have 2 pages that have the following and both pages in their code behind have their own Search Method.
<button class="btn input-search-btn no-outline" @onclick="@(async () => await Search())">
so What I want to do is place this in it's own component and when the user clicks the button that the component raises a 'search' event and then each page using this component to implements it's own search. (there is more to the component, but this is my basic issue)