doctor-on-call.js
768 Bytes
import React from "react";
import { createWrapper } from "next-redux-wrapper";
import Image from "next/image";
const DoctorOnCall = () => {
return (
<div>
<h1>Hello world</h1>
<span className=""></span>
<Image
priority={true}
width="3000px"
height="600px"
src="/banner/abu-faqs-d.png"
></Image>
</div>
);
};
export default DoctorOnCall;
// This function gets called at build time
export async function getStaticProps() {
// Call an external API endpoint to get posts
// const res = await fetch('https://.../posts')
// const posts = await res.json()
// By returning { props: { posts } }, the Blog component
// will receive `posts` as a prop at build time
return {
props: {},
};
}