Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
It means:
<ImagePicker
onSave={(assets) => console.log(assets)}
onCancel={() => console.log("no permissions or user go back")}
/>
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
It means: <ImagePicker onSave={(assets) => console.log(assets)} onCancel={() => console.log("no permissions or user go back")} />
is empty Can you fix that?