mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-04-06 04:55:35 -04:00
14 lines
283 B
Vue
14 lines
283 B
Vue
<template>
|
|
<slot v-if="advanced" />
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
/**
|
|
* Renderless component that only renders if the user is logged in.
|
|
* and has advanced options toggled.
|
|
*/
|
|
const auth = useMealieAuth();
|
|
|
|
const advanced = auth.user.value?.advanced || false;
|
|
</script>
|