--- import { Icon } from "astro-icon/components"; import Badge from "@components/Badge.astro"; export interface Props { typekind: string; typename: string; typelink: string; typelink_text: string; typename_generic?: string; typelink_generic?: string; badges?: string[]; typedata_params?: string[]; } const { typekind, typename, typelink, typelink_text, typename_generic, typelink_generic, badges, typedata_params, } = Astro.props; const iconSelector: { [key: string]: string } = { prop: "tag", func: "roundbrackets", signal: "powercord", variant: "fourdiamonds", }; ---
{typekind !== "func" && } { typename }{ (typekind === "func" || typekind === "signal") ? (({typedata_params})) :""} { typekind !== "variant" && {typekind !== "signal" &&":"}  { typelink_text } {typename_generic && ( <{typename_generic}> ) } }
{badges && badges.length > 0 ? ( badges.map(badgeText => ) ) : null}