--- // Import the necessary dependencies import { Image } from 'astro:assets'; import IconBlock from '@components/ui/blocks/IconBlock.astro'; import Icon from '@components/ui/icons/Icon.astro'; interface Feature { heading: string; content: string; svg: string; } interface Props { title?: string; subTitle?: string; features?: Feature[]; src?: any; alt?: string; } // Define props from Astro const { title, subTitle, src, alt, features } = Astro.props; ---
{/* Block to display the feature image */}
{ src && alt && ( {alt} ) }
{ /* Displaying the main content consisting of title, subtitle, and several `IconBlock` components */ }
{/* Block for title and subtitle */}
{/* Rendering title */}

{title}

{/* Rendering subtitle */} { subTitle && (

{subTitle}

) }
{/* Block to display the IconBlock components */}
{/* Injecting IconBlock components with different properties */} { features && features.map(feature => ( )) }