import { fetchReviews, youtubers } from '@blitzkit/core'; import { Box, Flex, Heading, Link, Text } from '@radix-ui/themes'; import { Var } from '../../core/radix/var'; import { Duel } from '../../stores/duel'; import { PageWrapper } from '../PageWrapper'; import { VerifiedIcon } from '../VerifiedIcon'; const reviews = await fetchReviews(); export function VideoSection() { const tank = Duel.use((state) => state.protagonist.tank); const videos = reviews.reviews[tank.id]?.videos; if (!videos) return null; return ( Review videos BlitzKit does not endorse any review videos. {videos.map((video) => { const image = `https://i.ytimg.com/vi/${video.id}/hqdefault.jpg`; const youtuber = youtubers.find( (youtuber) => youtuber.id === video.author, ); if (!youtuber) return null; return ( {youtuber.name} ); })} Apply to BlitzKit YouTuber program ); }