https://umeshtharukaofficial.medium.com/managing-types-in-react-typescript-the-right-way-a6f21f48722d