import { Show, type JSX } from "solid-js" import { Icon } from "./icon" export type LineCommentVariant = "default" | "editor" export type LineCommentAnchorProps = { id?: string top?: number open: boolean variant?: LineCommentVariant onClick?: JSX.EventHandlerUnion onMouseEnter?: JSX.EventHandlerUnion onPopoverFocusOut?: JSX.EventHandlerUnion class?: string popoverClass?: string children: JSX.Element } export const LineCommentAnchor = (props: LineCommentAnchorProps) => { const hidden = () => props.top === undefined const variant = () => props.variant ?? "default" return (
{props.children}
) }