Assuming the Panasonic component is a soundbar or home theater system you would connect the audio output of the TV to it.
You can do that using HDMI-ARC, digital audio (optical or coax), headphone out, or analog audio out.
It would depend on the TV audio output and the Panasonic audio input.
If you don't have matching audio out and in you would need an active converter to connect them.