--- import type { SkillsSection } from '@/types/sections/skills-section.types'; import SectionHeading from '../components/section-heading.astro'; export interface Props extends SkillsSection {} const { config, skillSets } = Astro.props; ---
{config.title}
{ skillSets.map((skillSet) => (
{skillSet.title}
{skillSet.skills.map((skill) => { if ('level' in skill) { return (
{skill.name}
{skill.level}/5
); } if (skill.name.includes(' - ')) { return (
{skill.name.split(' - ')[0]}
{skill.name.split(' - ')[1]}
); } return
{skill.name}
; })}
)) }