--- import { cn } from '../lib/cn' import type { AstroChildren, AstroComponent, PolymorphicComponent } from '../lib/astro' import type { HTMLTag } from 'astro/types' type Props = PolymorphicComponent & { children: AstroChildren text: string classNames?: { tooltip?: string } color?: 'black' | 'white' | 'zinc-700' position?: 'bottom' | 'left' | 'right' | 'top' enabled?: boolean } const { as: Component = 'span', text, classNames, class: className, color = 'zinc-700', position = 'top', enabled = true, ...htmlProps } = Astro.props --- { enabled && (