I eventually found the issue that I had a typo in my code.
However, within the tab panel, one can just access the props of the component.
// bobsProps is passed in as a function properties, so is accessible.
<TabPanel bob={bobsProps} value={value} index={2}>
<div>{bobsProps.somevalue}</div>
</TabPanel>