26 lines
No EOL
669 B
Vue
26 lines
No EOL
669 B
Vue
<template>
|
|
<v-container>
|
|
<RecipeCardSection
|
|
v-if="recentRecipes"
|
|
:icon="$globals.icons.primary"
|
|
:title="$t('general.recent')"
|
|
:recipes="recentRecipes"
|
|
></RecipeCardSection>
|
|
</v-container>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from "@nuxtjs/composition-api";
|
|
import RecipeCardSection from "~/components/Domain/Recipe/RecipeCardSection.vue";
|
|
import { useRecipes, recentRecipes } from "~/composables/use-recipes";
|
|
|
|
export default defineComponent({
|
|
components: { RecipeCardSection },
|
|
setup() {
|
|
const { assignSorted } = useRecipes(false);
|
|
|
|
return { recentRecipes, assignSorted };
|
|
},
|
|
});
|
|
</script>
|
|
|