<template>
    <page-layout>
        <template #right>
            <f-save-button form="preventionform"></f-save-button>
        </template>
        <setting-layout>
            <form id="preventionform" class="grow p-6" @submit.prevent="submit">
                <div class="col-span-full text-gray-100 mb-3">
                    <p class="text-sm">Hier kannst du Einstellungen zu Prävention setzen.</p>
                </div>
                <div class="grid gap-4 mt-2">
                    <f-editor id="frommail" v-model="data.formmail" label="E-Mail für Veranstaltungs-TN"></f-editor>
                </div>
            </form>
        </setting-layout>
    </page-layout>
</template>

<script setup>
import {props, useSettings} from './useSettings.js';
const innerProps = defineProps(props);
const {submit, data, meta, SettingLayout} = useSettings(innerProps);
</script>
