--- // Import the necessary dependencies import TabNav from "../../ui/blocks/TabNav.astro"; import TabContent from "../../ui/blocks/TabContent.astro"; import Icon from "../../ui/icons/Icon.astro"; // Define props from Astro const { title, tabs } = Astro.props; // Define TypeScript interface for tab object interface Tab { heading: string; content: string; svg: string; src: any; alt: string; first?: boolean; second?: boolean; } // Define TypeScript interface for props interface Props { title?: string; tabs: Tab[]; } --- { tabs.map((tab, index) => ( )) } { tabs.map((tab, index) => ( )) }