<template>
  <div>

    <recipe-edit :recipe="recipe" action="Creating"></recipe-edit>

  </div>
</template>

<script>

  import RecipeEdit from "./RecipeEdit";
  import { mapState } from "vuex";
  import api from "../lib/Api";

  export default {
    data() {
      return {
        recipe: {
          name: null,
          source: null,
          description: null,
          yields: null,
          total_time: null,
          active_time: null,
          step_text: null,
          tags: [],
          ingredients: []
        }
      }
    },

    computed: {
      ...mapState({
        recipeId: state => state.route.params.id,
      })
    },

    components: {
      RecipeEdit
    }
  }

</script>

<style lang="scss" scoped>
</style>