import * as React from 'react';
import { storiesOf } from '@storybook/react';
import { wInfo } from '@utils/wInfo';
import Footer from '.';
const props = {
locale: {
flag:
"data:image/svg+xml,%3Csvg:svg xmlns:svg='http://www.w3.org/2000/svg' class='i' id='gb' preserveAspectRatio='xMidYMid meet' viewBox='0 0 57.918 39.454' width='57.918' height='39.454'%3E%3Cg xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='0' fill='%23022169' width='57.9' height='39.5'/%3E%3Cpolygon fill='%23FFFFFF' points='50.7,0 35.5,10.3 35.5,0 22.4,0 22.4,10.3 7.3,0 0,0 0,4.9 12,13.1 0,13.1 0,26.3 12,26.3 0,34.5 0,39.5 7.3,39.5 22.4,29.1 22.4,39.5 35.5,39.5 35.5,29.1 50.7,39.5 57.9,39.5 57.9,34.5 45.9,26.3 57.9,26.3 57.9,13.1 45.9,13.1 57.9,4.9 57.9,0'/%3E%3Cpolygon fill='%23EB0029' points='19.2,26.3 0,39.5 4.6,39.5 22.5,27.3 22.5,26.3'/%3E%3Cpolygon fill='%23EB0029' points='53.3,0 35.5,12.2 35.5,13.1 38.7,13.1 57.9,0'/%3E%3Cpolygon fill='%23EB0029' points='0,3.1 14.6,13.1 19.2,13.1 0,0'/%3E%3Cpolygon fill='%23EB0029' points='38.7,26.3 57.9,39.5 57.9,36.3 43.3,26.3'/%3E%3Cpolygon fill='%23EB0029' points='25.1,0 25.1,15.8 0,15.8 0,23.7 25.1,23.7 25.1,39.5 32.9,39.5 32.9,23.7 57.9,23.7 57.9,15.8 32.9,15.8 32.9,0'/%3E%3C/g%3E%3C/svg:svg%3E",
name: 'United Kingdom (£)',
title: 'Change country'
},
legal: '© Rapha Racing Limited 2019. All rights reserved.',
navigation: [
{
links: [
{
title: '+44(0)207 485 5000',
url: 'tel:+44(0)207 485 5000'
},
{
title: 'enquiries@rapha.cc',
url: 'mailto:enquiries@rapha.cc'
},
{
title: 'Find a Store',
url: '/clubhouses'
},
{
title: 'FAQ',
url: '/faq'
},
{
title: 'Shipping',
url: '/shipping'
},
{
title: 'Returns',
url: '/returns'
},
{
title: 'Repair Service',
url: '/repair-service'
}
],
name: 'CustomerServices Pages',
text: 'Customer services',
type: 'cs'
},
{
links: [
{
title: 'About Rapha',
url: '/about-rapha'
},
{
title: 'Work at Rapha',
url: '/careers'
},
{
title: 'Rapha Foundation',
url: '/stories/rapha-foundation'
},
{
title: 'Industry Purchase Program',
url: '/industry-purchase-program'
},
{
title: 'Press Enquiries',
url: '/press'
},
{
title: 'Privacy Policy',
url: '/privacy-policy'
},
{
title: 'Terms & Conditions',
url: '/website-terms-and-conditions'
},
{
title: 'Modern Slavery Statement',
url: '/modern-slavery-statement'
},
{
title: 'Cookies',
url: '/cookies'
}
],
name: 'Information Pages',
text: 'Information',
type: 'information'
},
{
links: [
{
title: 'Facebook',
url: 'https://www.facebook.com/rapharacing'
},
{
title: 'Instagram',
url: 'https://instagram.com/rapha'
},
{
title: 'Twitter',
url: 'https://twitter.com/rapha'
},
{
title: 'Vimeo',
url: 'https://vimeo.com/raphafilms'
},
{
title: 'Youtube',
url: 'https://youtube.com/raphafilms'
}
],
name: 'Follow Rapha Pages',
text: 'Follow Rapha',
type: 'social'
}
]
};
const stories = () => storiesOf('Footer', module) as any;
stories().addWithJSX(
'Default',
wInfo(`
### Usage
~~~js
import Footer from '.';
const props = {
locale: {
flag: '',
name: 'United Kingdom (£)',
title: 'Change country'
},
legal: "© Rapha Racing Limited 2019. All rights reserved.",
navigation: [
{
"links": [
{
"title": "Repair Service",
"url": "/repair-service"
}
],
"name": "CustomerServices Pages",
"text": "Customer services",
"type": "cs"
},
{
"links": [
{
"title": "About Rapha",
"url": "/about-rapha"
}
],
"name": "Information Pages",
"text": "Information",
"type": "information"
},
{
"links": [
{
"title": "Facebook",
"url": "https://www.facebook.com/rapharacing"
}
],
"name": "Follow Rapha Pages",
"text": "Follow Rapha",
"type": "social"
}
]
};
~~~`)(() => (
))
);