<script setup lang="ts">
import { siteConfig } from '~/config/site'
</script>

<template>
  <footer class="py-6 text-center text-sm border-t" style="color: var(--color-text-secondary); border-color: var(--color-border);">
    <p>
      &copy; {{ new Date().getFullYear() }} {{ siteConfig.siteName }}
      <template v-if="siteConfig.icp">
        &nbsp;·&nbsp;
        <a href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer" class="hover:opacity-70" style="border-bottom: 1px solid var(--color-text-secondary); padding-bottom: 1px;">{{ siteConfig.icp }}</a>
      </template>
    </p>
  </footer>
</template>
