--- import { Icon } from 'astro-icon/components' import { cn } from '../lib/cn' import type { Polymorphic } from 'astro/types' type Props = Polymorphic<{ as: Tag icon: string endIcon?: string text: string inlineIcon?: boolean }> const { icon, text, class: className, inlineIcon, endIcon, as: Tag = 'div', ...divProps } = Astro.props --- {text} {!!endIcon && }