import { ComputedRef, Ref, computed, ref } from 'vue'; import { Table } from './models'; const loading: Ref = ref(false); const tables: Ref = ref([]); const totalPerQuery: Ref = ref(0); const totalInDb: Ref = ref(0); const filterIds: Ref = ref([]); const selectedTable: Ref = ref(null); const copiedShortcode: Ref = ref(''); const getUserId: ComputedRef = computed(() => { const { userSettings: { uid }, } = window as any; return uid; }); export default { tables, totalPerQuery, totalInDb, filterIds, getUserId, loading, copiedShortcode, selectedTable, };