Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React from 'react';
import { storiesOf } from '@storybook/react';
import { BrowserRouter as Router, Link } from 'react-router-dom';
import { asPaginationItem } from '@govuk-react/hoc';
import { withDocsCustom } from '@govuk-react/storybook-components';
import Pagination from '.';
import ReadMe from '../README.md';
const PaginationTag = asPaginationItem('a');
const PaginationLink = asPaginationItem(Link);
const stories = storiesOf('Navigation/Pagination', module);
const examples = storiesOf('Navigation/Pagination/Examples', module);
stories.addDecorator(withDocsCustom(ReadMe));
stories.add('Component default', () => (
Previous page
Next page
));
import React from 'react';
import { storiesOf } from '@storybook/react';
import { BrowserRouter as Router, Link } from 'react-router-dom';
import { asPaginationItem } from '@govuk-react/hoc';
import { withDocsCustom } from '@govuk-react/storybook-components';
import Pagination from '.';
import ReadMe from '../README.md';
const PaginationTag = asPaginationItem('a');
const PaginationLink = asPaginationItem(Link);
const stories = storiesOf('Navigation/Pagination', module);
const examples = storiesOf('Navigation/Pagination/Examples', module);
stories.addDecorator(withDocsCustom(ReadMe));
stories.add('Component default', () => (
Previous page
Next page
import React from 'react';
import { asPaginationItem } from '@govuk-react/hoc';
import Pagination from '.';
const PaginationTag = asPaginationItem('a');
export default () => (
Previous page
Next page
);