mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-15 12:23:12 -05:00
22 lines
411 B
Vue
22 lines
411 B
Vue
<template>
|
|
<div scoped-slot />
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
/**
|
|
* Renderless component that only renders if the user is logged in.
|
|
* and has advanced options toggled.
|
|
*/
|
|
export default defineNuxtComponent({
|
|
setup(_, ctx) {
|
|
const auth = useMealieAuth();
|
|
|
|
const r = auth.user.value?.advanced || false;
|
|
|
|
return () => {
|
|
return r ? ctx.slots.default?.() : null;
|
|
};
|
|
},
|
|
});
|
|
</script>
|