<script setup lang="ts">
const { onRender } = useScreen();

const store = useContactStore();
const { assets } = useAssets();

onRender((ctx) => {
  ctx.drawImage(assets.home.topScreen.background, 0, 0);
  ctx.globalAlpha = store.isIntro
    ? store.intro.stage2Opacity
    : store.outro.stage3Opacity;

  ctx.drawImage(assets.contact.topScreen.background, 0, 0);
});

defineOptions({
  render: () => null,
});
</script>
