In Header.js, the props are not being destructured, so open is actually the props object.

// It should be this
const Header = ({ open, setOpen }) => (

// Not this
const Header = (open, setOpen) => (