How To Integrate Brave Wallet into Dapp

I’m a dev that is working on a dapp. We want to have a button that when clicked, connects to the Brave Wallet. This is already implemented for MetaMask wallet.

I was told that Brave Wallet is just a fork of MetaMask wallet and the logic can be reused, but I’m not sure I understand. How do I implement this? If I reuse the MetaMask logic, it will try connecting to MetaMask and not the Brave Wallet