1.2.2 • Published 6 years ago
@times-stories/end-page v1.2.2
@times-stories/end-page
The End page template for the
@times-storiessuite of packages
Installation
$ yarn add @times-stories/end-pageUsage
import Story from "@times-stories/story";
import Page from "@times-stories/page";
import EndPage from "@times-stories/end-page";
const topics = [
  { name: "Topic 1", slug: "topic-1" },
  { name: "Topic 2", slug: "topic-2" }
];
export default () => (
  <Story>
    <Page>
      {props => (
        <EndPage
          {...props}
          articleId="1234-1234-1234"
          headline="This is the headline"
          topics={topics}
        />
      )}
    </Page>
  </Story>
);