@times-stories/end-page
v1.2.2
Published
> The End page template for the `@times-stories` suite of packages
Downloads
6
Keywords
Readme
@times-stories/end-page
The End page template for the
@times-stories
suite of packages
Installation
$ yarn add @times-stories/end-page
Usage
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>
);