diff --git a/components/Current/ContentPage/index.tsx b/components/Current/ContentPage/index.tsx index a950410b1..dffebd2b6 100644 --- a/components/Current/ContentPage/index.tsx +++ b/components/Current/ContentPage/index.tsx @@ -5,14 +5,9 @@ import Hero from "@/components/Current/Hero" import Preamble from "@/components/Current/Preamble" import Section from "@/components/Current/Section" import SubnavMobile from "@/components/Current/SubnavMobile" -import { Lang } from "@/types/lang" -import { GetCurrentBlockPageData } from "@/types/requests/currentBlockPage" -type ContentPageProps = { - data: GetCurrentBlockPageData - uri: string - lang: Lang -} +import type { ContentPageProps } from "@/types/components/current/contentPage" + export default function ContentPage({ data, lang, uri }: ContentPageProps) { const page = data.all_current_blocks_page.items[0] diff --git a/types/components/current/contentPage.ts b/types/components/current/contentPage.ts new file mode 100644 index 000000000..73f029864 --- /dev/null +++ b/types/components/current/contentPage.ts @@ -0,0 +1,8 @@ +import type { Lang } from "@/types/lang" +import type { GetCurrentBlockPageData } from "@/types/requests/currentBlockPage" + +export type ContentPageProps = { + data: GetCurrentBlockPageData + uri: string + lang: Lang +}