make props optional react typescript