aboutsummaryrefslogtreecommitdiff
path: root/modern/src/common/components/DriverValue.js
blob: 6148b418bfef9490513eaa88aa4f3300efcdc6f4 (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 || driverUniqueId;
};

export default DriverValue;