--- interface Props { /** The word or term to define */ term: string; /** The definition of the term */ definition: string; /** Optional CSS class to apply to the term */ class?: string; /** Optional style to apply to the term */ style?: string; /** Tooltip position (top, bottom, left, right) */ position?: "top" | "bottom" | "left" | "right"; /** Delay before showing tooltip in ms */ delay?: number; /** Disable tooltip on mobile */ disableOnMobile?: boolean; } const { term, definition, class: className = "", style: inlineStyle = "", position = "top", delay = 300, disableOnMobile = false, } = Astro.props as Props; // Generate a unique ID for this component const tooltipId = `glossary-${Math.random().toString(36).slice(2)}`; ---