'Component' refers to a value, but is being used as a type here. Did you mean 'typeof Component'?ts(2749) code example
Example: React component refers to a value, but is being used as a type here. Did you mean 'typeof Counter'?ts(2749)
Check the file extension, instead of .ts use .tsx