All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 1m4s
18 lines
474 B
TypeScript
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;
|