/* @aztlan/generator-front 1.1.3 */
// import * as React from 'react'

import {
  Meta, StoryObj,
} from '@storybook/react'
import Component from './DataMap.js'
import PostalAddressMap from './PostalAddressMap.js'

const meta: Meta<typeof Component> = {
  title    :'common/Map/DataMap',
  component:Component,
}

export default meta

const relayConfig = {
  query            :PostalAddressMap.QUERY,
  getReferenceEntry:(data) => [
    'data',
    data.geocode,
  ],
  variables    :{},
  mockResolvers:{
    GeoCoordinates:() => ({
      latitude :37.7749,
      longitude:-122.4194,
    }),
  },
}

export const Base: StoryObj<typeof Component> = {
  // args      :{ children: 'Sample PreloadedQueryMap' },
  parameters:{ relay: relayConfig },
}
