<template>
  <div class="new_survey">
    <div v-if="$route.name !== 'home'">
      <van-popup v-model:show="show" round closeable position="bottom" teleport="#app">
        <create-question :createdNewPage="false"></create-question>
      </van-popup>
    </div>
    <navigation />
  </div>
</template>
<script setup>
import CreateQuestion from '@/views/Home/components/CreateSurvey/CreateQuestion.vue';
import Navigation from '@/components/Navigation/Index.vue';
import { ref } from 'vue';

function create() {
  show.value = true;
}
const show = defineModel('show', { type: Boolean, default: false });
</script>

<style scoped lang="scss">
@use '@/assets/css/theme';

.new_survey {
  position: fixed;
  bottom: 50px;
  left: 0;
  box-sizing: border-box;
  width: 100vw;
  border-radius: theme.$card-radius;
  background: #fff;
}
</style>
