<script lang="ts" setup>
import type { Ref } from 'vue';
import { inject } from 'vue';
import { configKey } from '../../utils/injectedKeys';
import type { LayoutConfig } from './types';

const { config } = inject<{ config: Ref<LayoutConfig> }>(configKey)!;
</script>

<template>
  <slot v-if="config.isFooter" name="footer" />
</template>

<style scoped>
.theFooter {
  position: relative;
  width: 100%;
  height: 25px;
}
</style>
