Files
AnimeTV-Frontend/features/home/sections/Hero/main.tsx
Rafi Arrafif 29f2d3fa59
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 1m4s
🔧 chore: replace dummy data with real data
2026-03-03 13:58:11 +07:00

18 lines
474 B
TypeScript

import { backendFetch, BackendResponse } from "@/shared/helpers/backendFetch";
import HeroSwiper, { HeroSwiperProps } from "./components/Swiper";
const HeroMain = async () => {
const testing = async () => {
return (await backendFetch("hero-banner")) as BackendResponse<
HeroSwiperProps["data"]
>;
};
const response = await testing();
if (!response.data) return <div></div>;
return <HeroSwiper data={response.data} />;
};
export default HeroMain;