function ColumnLayout({ paragraph }) {
// Split the paragraph into sentences
const sentences = paragraph.split('. ')
// Count the number of sentences that contain images
const imageSentences = sentences.filter((sentence) =>
sentence.includes('= 3) {
columnCount = 3
} else {
columnCount = 1 // Default to one column if no images are found
}
// Generate an array of columns
const columns = Array.from({ length: columnCount }, (_, index) => (
{sentence}
))}