diff --git a/apps/roboshield/src/components/Footer/Footer.tsx b/apps/roboshield/src/components/Footer/Footer.tsx index e2689f389..f635f704e 100644 --- a/apps/roboshield/src/components/Footer/Footer.tsx +++ b/apps/roboshield/src/components/Footer/Footer.tsx @@ -7,7 +7,7 @@ import NewsletterSubscription from "@/roboshield/components/NewsletterSubscripti import StayInTouch from "@/roboshield/components/StayInTouch"; import FooterDescription from "./FooterDescription"; -interface FooterProps { +export interface FooterProps { connect: { links: { url: string; platform: string }[]; title: string; diff --git a/apps/roboshield/src/components/Footer/index.ts b/apps/roboshield/src/components/Footer/index.ts index a64cd38db..4691e3e2e 100644 --- a/apps/roboshield/src/components/Footer/index.ts +++ b/apps/roboshield/src/components/Footer/index.ts @@ -1,3 +1,5 @@ +import type { FooterProps } from "./Footer"; import Footer from "./Footer"; +export type { FooterProps }; export default Footer; diff --git a/apps/roboshield/src/components/Page/Page.tsx b/apps/roboshield/src/components/Page/Page.tsx index b78623743..f66091302 100644 --- a/apps/roboshield/src/components/Page/Page.tsx +++ b/apps/roboshield/src/components/Page/Page.tsx @@ -1,6 +1,7 @@ import React from "react"; -import Footer from "../Footer"; +import type { FooterProps } from "@/roboshield/components/Footer"; +import Footer from "@/roboshield/components/Footer"; import NavBar from "@/roboshield/components/NavBar"; @@ -33,7 +34,7 @@ interface Footer { interface Props { children?: React.ReactNode; navbar?: Navbar; - footer?: Footer; + footer?: FooterProps; } function Page({ children, navbar, footer }: Props) { return (