SkeletonLoaderVideoGrid.tsx 425 B

123456789101112131415161718
  1. import React from 'react'
  2. import { Grid } from '@/shared/components'
  3. import { VideoTile } from './VideoTile'
  4. type SkeletonLoaderVideoGridProps = {
  5. videosCount?: number
  6. }
  7. export const SkeletonLoaderVideoGrid: React.FC<SkeletonLoaderVideoGridProps> = ({ videosCount = 10 }) => {
  8. return (
  9. <Grid>
  10. {Array.from({ length: videosCount }).map((_, idx) => (
  11. <VideoTile key={idx} />
  12. ))}
  13. </Grid>
  14. )
  15. }