--- import { Code } from "@astrojs/starlight/components"; import { Markdown } from "@astropub/md"; import type { Plugin } from "~/utils/types"; import Modal from "./Modal.astro"; type Props = Plugin; const { name, description, example, author } = Astro.props; const trimmedCode = example .replace("```ts", "") .replace("```", "") .split("\n") .filter(Boolean) .join("\n"); const trimmedDescription = description.replace("[DEPRECATED]", ""); const deprecated = description.includes("[DEPRECATED]"); const authors = new Intl.ListFormat("en", { style: "long", type: "conjunction", }).format( author.map((s) => s .replace(/[\]<>@]/g, "") .split("[")[0] .trim(), ), ); --- { deprecated && (
This plugin is deprecated and should not be used in new projects.
) }