import { StateNavigator } from 'navigation';
import { NavigationBackLink, NavigationLink, RefreshLink } from 'navigation-react';
import * as React from 'react';
const stateNavigator = new StateNavigator([
{ key: 'people', route: 'people/{page}' },
{ key: 'person', route: 'person/{id}', trackCrumbTrail: true }
]);
// Refresh Link
let RefreshLinkTest = () => People;
RefreshLinkTest = () => {
return (
true}
stateNavigator={stateNavigator}
target="_blank"
aria-label="Go to the second page of people">
People
);
};
// Navigation Link
let NavigationLinkTest = () => Person;
NavigationLinkTest = () => {
return (
true}
stateNavigator={stateNavigator}
target="_blank"
aria-label="View the person's details">
Person
);
};
// Navigation Back Link
let NavigationBackLinkTest = () => People;
NavigationBackLinkTest = () => {
return (
true}
stateNavigator={stateNavigator}
target="_blank"
aria-label="Go back to the list of people">
People
);
};