<template>
  <div>
    Hello
    {{ id }}
    <module :module="snapshot" />
  </div>
</template>

<script>
  import SNAPSHOT_DETAIL_QUERY from '@/graphql/gql/queries/snapshots/detail.gql';

  import Module from '@/components/modules/Module';

  export default {
    props: {
      id: {
        type: String,
        default: '',
      },
    },

    components: {
      Module
    },

    apollo: {
      snapshot: {
        query: SNAPSHOT_DETAIL_QUERY,
        variables() {
          return {
            id: this.id
          };
        }
      },

    },

  };
</script>

<style scoped lang="scss">
  @import '~styles/helpers';

</style>
