<script setup lang="ts">
import {Flight, User} from "@/Types/types";
import ProfileHeader from "@/Components/FlightsGoneBy/ProfileHeader.vue";

defineProps<{
    user: User
    flights: Flight[]
    isFollowing: boolean
}>()
</script>

<template>
    <div class="board-wrapper">
        <ProfileHeader :is-following="isFollowing" :user="user" :flights="flights" />
        <slot />
    </div>
</template>

<style scoped>
.board-wrapper {
    min-height: 100dvh;
    padding: 2.5rem 2rem;
    font-family: 'Barlow', sans-serif;
    width: 100%;
}

@media (max-width: 1200px) {
    .board-wrapper {
        padding: 1em 0.25em;
    }
}
</style>
