/* This can't be removed as it must be in scope for rewriting JSX to JS. */ import * as React from 'react'; import classnames from 'classnames'; import * as components from '../../bundles/componentsBundle'; import * as passages from '../../bundles/passagesBundle'; import * as tagsBundle from '../../bundles/tagsBundle'; import builtInStyles from '../_global-styles/built-ins.less'; import styles from './{{{name}}}.less'; /* The header gets all the same props as a normal passage. */ class Header extends React.PureComponent { public render() { const { lastLinkTags, passageObject, navigateTo, restart, setStoryState, storyState, } = this.props; return ( ); } } const passage: passages.IHeader = { /* string: the name of the header. */ name: '{{{name}}}', /* React.ComponentType: the content that should be displayed. * Should be formatted in JSX style. */ content: Header, }; /* Always make the passage object a default export. */ export default passage;