import {encode} from "html-entities";
function errorTemplate({title, message, statusCode, tabTitle}) {
  return `<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>${tabTitle}</title>
    <style>
      body {
        background-color: #101010;
        color: #d0d0d0;
        font-family: monospace;
        line-height: 1.6;
        margin: 0;
      }
      .wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
      }
      h1 {
        font-weight: 800;
        margin-top: 1rem;
        margin-bottom: 0;
      }
      pre {
        color: #999;
        font-size: 1.4em;
        margin-top: 0;
        max-width: 60em;
      }
      .status {
        opacity: 0.7;
      }
    </style>
  </head>
  <body>
    <main class="wrapper">
      <h1>${statusCode ? `<span class="statusCode">${statusCode}</span> ` : ""}${title}</h1>
      <pre><code>${encode(message)}</code></pre>
    </main>
  </body>
</html>
`;
}
export {
  errorTemplate
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vc3JjL2NvcmUvZGV2L3RlbXBsYXRlL2Vycm9yLnRzIl0sCiAgIm1hcHBpbmdzIjogIkFBQUE7QUFVTyx1QkFBdUIsQ0FBRSxPQUFPLFNBQVMsWUFBWSxXQUEwQztBQUNwRyxTQUFPO0FBQUE7QUFBQTtBQUFBO0FBQUEsYUFJSTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBLFlBK0JELGFBQWEsNEJBQTRCLHVCQUF1QixLQUFLO0FBQUEsbUJBQzlELE9BQU87QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBOyIsCiAgIm5hbWVzIjogW10KfQo=
