<script setup>
import GraphSidebar from "./components/GraphSidebar.vue";
import GraphTable from "./components/GraphTable.vue";
import { provide, ref } from "vue";

const current_dir = ref(null);
const sidebar_data = ref([]);
const updateCurrentDir = (d) => {
  current_dir.value = d;
};
provide("current_dir", { current_dir, updateCurrentDir, sidebar_data });
</script>

<template>
  <div>
    <h1 class="text-2xl font-extrabold mb-2">
      {{ $t("graphManagement.title") }}
    </h1>
    <div class="grid grid-cols-9 gap-6">
      <GraphSidebar class="col-span-9 lg:col-span-2" />
      <GraphTable class="col-span-9 lg:col-span-7" />
    </div>
  </div>
</template>

<style lang="scss" scoped></style>
