import {useIndex} from '../../composables/useInertiaApiIndex.js'; import SettingLayout from './Layout.vue'; export function useSettings(props) { const {data, meta, router} = useIndex(props.data); function submit() { router.post(meta.value.links.store, {...data.value}); } return { submit, data, meta, props, SettingLayout, }; } const props = { data: { default: () => { return {data: [], meta: {}}; }, type: Object, }, }; export {props};