From 2b63e7f36b0f9975d1cacaff689235bbdc8cd710 Mon Sep 17 00:00:00 2001 From: nithish Date: Mon, 18 Nov 2024 13:35:53 +0530 Subject: [PATCH] Added type definition for Banner --- pages/{index.js => index.tsx} | 12 +++++++----- tsconfig.json | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) rename pages/{index.js => index.tsx} (99%) diff --git a/pages/index.js b/pages/index.tsx similarity index 99% rename from pages/index.js rename to pages/index.tsx index 2914ad0..07eed5b 100644 --- a/pages/index.js +++ b/pages/index.tsx @@ -1,7 +1,5 @@ /* eslint-disable @next/next/no-img-element */ - import { useState } from "react"; - import { ArrowPathIcon, ChevronRightIcon, @@ -144,9 +142,13 @@ const aiTools = [ "Ayushma AI is multilingual Medical Protocol Assistant for assisting nurses.", }, ]; - +type Banner = { + message: string; + href: string; +}; export default function Home() { - const [banner, setBanner] = useState(null); + + const [banner, setBanner] = useState(null); return (
@@ -824,7 +826,7 @@ export default function Home() {
- + {null}