diff --git a/app/(site)/(root)/components/Carousel/index.tsx b/app/(site)/(root)/components/Carousel/index.tsx index 7729a79..31bce07 100644 --- a/app/(site)/(root)/components/Carousel/index.tsx +++ b/app/(site)/(root)/components/Carousel/index.tsx @@ -40,7 +40,9 @@ const Carousel = memo( return (
- {!loaded && } + {!loaded && ( + + )} void; className?: string; lazy?: boolean; + priority?: boolean; } -const Poster: FC = ({ show, onClick, className, lazy = true }) => ( -
- - - - - - {show.title} - - -
-); +type FetchPriorityProps = ImgHTMLAttributes & { fetchpriority?: 'high' | 'low' | 'auto' }; + +const Poster: FC = ({ show, onClick, className, lazy = true, priority = false }) => { + const fetchPriorityProps: FetchPriorityProps = priority ? { fetchpriority: 'high' } : {}; + + return ( +
+ + + + + + {show.title} + + +
+ ); +}; export default Poster;