function getTemplateForPath(path) {
  let is404 = is404Path(path)
  let Comp = templatesByPath[path] || false

  if (!Comp && templateErrorByPath[path]) {
    is404 = true
    Comp = templatesByPath[PATH_404] || false
  }

  return { is404, Comp }
}
@param {string} path
@returns {React.ComponentType<{}> | false}