<script setup>
import { defineAsyncComponent } from 'vue'

const size375 = defineAsyncComponent(() => import("@/views/news/size375/index.vue"));
const size768 = defineAsyncComponent(() => import("@/views/news/size768/index.vue"));
const size1440 = defineAsyncComponent(() => import("@/views/news/size1440/index.vue"));
const size1920 = defineAsyncComponent(() => import("@/views/news/size1920/index.vue"));

const { viewComponent, componentKey } = useViewSelector({
  size375,
  size768,
  size1440,
  size1920,
});

const bg = usePageBackground("bg-news.png");

definePageMeta({
  layout: "default",
});

useSeoMeta({
  title: "Latest News & Updates | FiEE",
  description:
    "Stay updated with the latest press releases, corporate news, and event updates from FiEE.",
  ogTitle: "FiEE Newsroom",
});

provide('pageBg', bg);
</script>

<template>
  <component :is="viewComponent" :key="componentKey" />
</template>
