import { computed } from 'vue';
import { useRoute } from 'vue-router';

export function useRootPath() {
  const route = useRoute();
  const rootPath = computed(() => route.path.split('/')[1]);
  return rootPath;
}
