--- import { Icon } from "astro-icon/components"; /**** * FloatingButton 组件 * 用于创建一个悬浮按钮,支持图标、点击事件和可选的辅助标签。 */ interface Props { id: string; icon: string; ariaLabel?: string; onclick?: string; class?: string; } const { id, icon, ariaLabel, onclick, class: className = "" } = Astro.props; ---