<template>
  <div class="export-tools-page">
    <CreoExportTools v-if="currentConnectedSoftware === 'creo'" />
    <RevitExportTools v-else-if="currentConnectedSoftware === 'revit'" />
    <div v-else class="no-connection">请先连接CAD软件</div>
  </div>
</template>

<script setup>
import CreoExportTools from '@/components/pages/CreoExportTools.vue'
import RevitExportTools from '@/components/pages/RevitExportTools.vue'

defineProps({
  currentConnectedSoftware: {
    type: String,
    default: null
  }
})
</script>

<script>
export default {
  name: 'ExportToolsPage'
}
</script>

<style scoped>
.export-tools-page {
  width: 100%;
  height: 100%;
}

.no-connection {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-secondary);
  font-size: 16px;
  text-align: center;
}
</style>
