aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components/DriverValue.js
blob: 0969ca20de2f34f55e7eb17d972b0a70e4285475 (plain)
1
2
3
4
5
6
7
8
9
import { useSelector } from 'react-redux';

const DriverValue = ({ driverUniqueId }) => {
  const driver = useSelector((state) => state.drivers.items[driverUniqueId]);

  return driver.name;
};

export default DriverValue;