fix: add imageContainer reference in rte
This commit is contained in:
36
components/ImageContainer/index.tsx
Normal file
36
components/ImageContainer/index.tsx
Normal file
@@ -0,0 +1,36 @@
|
||||
import Image from "../Image"
|
||||
import Caption from "../TempDesignSystem/Text/Caption"
|
||||
|
||||
import styles from "./imageContainer.module.css"
|
||||
|
||||
import type { ImageContainerProps } from "@/types/components/imageContainer"
|
||||
|
||||
export default function ImageContainer({
|
||||
leftImage,
|
||||
rightImage,
|
||||
}: ImageContainerProps) {
|
||||
return (
|
||||
<section className={styles.container}>
|
||||
<article>
|
||||
<Image
|
||||
className={styles.image}
|
||||
src={leftImage.url}
|
||||
height={365}
|
||||
width={600}
|
||||
alt={leftImage.meta.alt || leftImage.title}
|
||||
/>
|
||||
<Caption>{leftImage.meta.caption}</Caption>
|
||||
</article>
|
||||
<article>
|
||||
<Image
|
||||
className={styles.image}
|
||||
src={rightImage.url}
|
||||
height={365}
|
||||
width={600}
|
||||
alt={rightImage.meta.alt || rightImage.title}
|
||||
/>
|
||||
<Caption>{leftImage.meta.caption}</Caption>
|
||||
</article>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user