Called with the key of the tab chosen.
(key: T) => void
import { type TabBarProps } from "src/components/shared/TabBar.tsx";