storybook-amp
Version:
Storybook addon for AMP Html. Allows to display in your stories AMP Html components generated with React.
12 lines (11 loc) • 658 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _default = function _default(_ref) {
var styles = _ref.styles,
scripts = _ref.scripts;
return "\n<html amp4email lang=\"en\" data-css-strict>\n <head>\n <meta charSet=\"utf-8\" />\n <script async src=\"https://cdn.ampproject.org/v0.js\"></script>\n ".concat(scripts ? scripts.trim() : '', "\n\n <style amp4email-boilerplate>body{visibility:hidden}</style>\n <style amp-custom>").concat(styles, "</style>\n </head>\n <body>\n <!-- STORY CODE -->\n </body>\n</html>");
};
exports["default"] = _default;