Issue with creating a streamlit component that renders a react canvas component. "property 'canvas' does not exist on type 'MyComponent'"

I’m trying to create a streamlit component which renders an already drawn canvas with a react Canvas component. I’m getting an error message reading "property ‘canvas’ does not exist on type ‘MyComponent’.
I’m still pretty new to this, not sure if it is even possible. Any ideas?

What its supposed to look like