File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { getImageProps } from "next/image"
2
2
import { getLocale , getTranslations } from "next-intl/server"
3
3
4
- import type { ClassNameProp , CommonHeroProps } from "@/lib/types"
4
+ import type { ClassNameProp } from "@/lib/types"
5
5
6
6
import LanguageMorpher from "@/components/Homepage/LanguageMorpher"
7
7
@@ -11,9 +11,7 @@ import { breakpointAsNumber } from "@/lib/utils/screen"
11
11
import heroBase from "@/public/images/home/hero.png"
12
12
import hero2xl from "@/public/images/home/hero-2xl.png"
13
13
14
- export type HomeHeroProps = Pick < CommonHeroProps , "heroImg" > & ClassNameProp
15
-
16
- const HomeHero = async ( { className } : HomeHeroProps ) => {
14
+ const HomeHero = async ( { className } : ClassNameProp ) => {
17
15
const locale = getLocale ( )
18
16
const t = await getTranslations ( { locale, namespace : "page-index" } )
19
17
Original file line number Diff line number Diff line change 1
1
export { default as ContentHero , type ContentHeroProps } from "./ContentHero"
2
- export { default as HomeHero , type HomeHeroProps } from "./HomeHero"
2
+ export { default as HomeHero } from "./HomeHero"
3
3
export { default as HubHero } from "./HubHero"
4
4
export { default as MdxHero , type MdxHeroProps } from "./MdxHero"
You can’t perform that action at this time.
0 commit comments