<template>
  <div class="index-page">
    <div class="index-page__content">
      <input v-model="diagramId" type="text" placeholder="Введите ID диаграммы">
      <button @click="$router.push(`/${diagramId}`)">
        Редактировать
      </button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const diagramId = ref('')
</script>

<style lang="scss">
.index-page {
  display: flex;
  height: 100%;

  &__content {
    margin: auto;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}
</style>
