I need help regarding this code. Please send help thank you!
const create = ({navigation, user, toClose, toSubmit}) => {
const submitDetails = () => {
if (!name.trim() && !code.trim()) return toClose();
toSubmit(name, code);
setName("");
setCode("");
toClose();
};
}
It keeps saying this. On the sample code that I am working with it works for them.

