Are you having issues at runtime or in the Build Mode? The most questionable thing I am seeing is in the Setting.tsx. I don't think it is valid to assign and deconstruct in the same statement.
const { useMapWidgetIds = [], useDataSources = [] } = props
This line should probably just be this:
const { useMapWidgetIds, useDataSources } = props
GIS Developer
City of Arlington, Texas