import React from 'react'

import { ComponentStory, ComponentMeta } from '@storybook/react'

import { Address } from '../components'

export default {
  title: 'Components/Address',
  component: Address,
} as ComponentMeta<typeof Address>

const Template: ComponentStory<typeof Address> = (args) => <Address {...args} />

export const Element = Template.bind({})

Element.args = {
  data: {
    address_1: 'Address Line One',
    address_2: 'Address Line Two',
    city: 'Address City',
    county: 'Address County',
    country: 'Address Country',
    postcode: 'PO5T C0D3',
  },
}
