You can probably safely assume that the damage to the horizontal section of pipe goes all the way to the tee fitting, or at least close enough to make no difference. Because of that, you'll need to replace the fitting as well.
Luckily, since the damage appears to be corrosion from whatever was sitting/flowing in the pipe, your vertical pipes probably don't need to be replaced yet.
Two things that work in your favor are the fact that plastic (ABS and PVC) DWV pipes are made in CTS (copper tubing size), and that DWV pipes aren't under pressure, which widens your choice of fittings. I would assume that you have a 1 1/2" drain stub, a 1 1/2" vent, and a 2" drain stack, but you should measure to be sure. Outside diameters of plastic drain pipes will be the same as the outside diameter of the existing copper.
What I would do here is cut at the top and bottom of the brass tee, then replace the tee and piping all the way to the sink with ABS drain pipe and fittings. You can use rubber couplings and short sections of pipe to attach to the two vertical sections of existing pipe, then use glued ABS fittings to get to your sink.
I wouldn't bother with expensive push-to-connect fittings (commonly branded as SharkBite) here. Even though they are easy to use, they are designed for pressure applications, which is unnecessary for drains.