---
interface Props {
imgBefore: string
imgAfter: string
captionBefore?: string
captionAfter?: string
}
const { imgBefore, imgAfter, captionBefore, captionAfter } = Astro.props
---
{captionBefore ? {captionBefore} : ""}
{captionAfter ? {captionAfter} : ""}