Where is the best place to put the export/upload function for a data table function?

There's two Scenarios:

V1 Export appears above the top right but only shows to a specific tab, it is hidden if it is not available in other tabs.

V2 Export appears under the tab where it is only available to.

here's the screenshot: enter image description here

Which one do you guys think is more appropriate and why?