Having two components that should work almost the same is quite challenging. We want to have one functionality that will be use d through two components. Let's think about how to solve this problem without having to duplicate a lot of code. Think in terms of re-usability.
https://github.com/Sephirosu/figma-next-tailwind/blob/5c2265816c9ba4c67ab547a2f2959df413e0d4d8/src/components/Search/SearchAll.tsx#L24
Having two components that should work almost the same is quite challenging. We want to have one functionality that will be use d through two components. Let's think about how to solve this problem without having to duplicate a lot of code. Think in terms of re-usability.