import { Match, Switch } from "@alloy-js/core"; import { Children } from "@alloy-js/core/jsx-runtime"; import { NamedArgumentList } from "./NamedArgumentList.jsx"; export interface AnnotationProps { type: Children; value?: Record; // Either single value or named values if many } /** * Use an annotation in code, not declaring a new annotation. * For instance, use this if you want to annotate a method with '\@Override'. */ export function Annotation(props: AnnotationProps) { return ( <> @{props.type} ({props.value!["value"]}) ); }