diff --git a/src/components/ChangelogSnippet/ChangelogCard.astro b/src/components/ChangelogSnippet/ChangelogCard.astro index a22d05ad2bd..589bfb6e280 100644 --- a/src/components/ChangelogSnippet/ChangelogCard.astro +++ b/src/components/ChangelogSnippet/ChangelogCard.astro @@ -2,12 +2,26 @@ import { SvgTaillessArrowDownSmall, Typography } from "@chainlink/blocks" import styles from "./ChangelogCard.module.css" import type { ChangelogItem } from "./types" +import { clsx } from "~/lib/clsx/clsx" +import CopyButton from "./CopyButton.tsx" interface Props { item: ChangelogItem + showBorder?: boolean + autoExpand?: boolean + showCopyButton?: boolean + disableHover?: boolean + showNetworksAndTopic?: boolean } -const { item } = Astro.props +const { + item, + showBorder = true, + autoExpand = false, + showCopyButton = true, + disableHover = false, + showNetworksAndTopic = false, +} = Astro.props // Format the date const formatDate = (dateString: string) => { @@ -22,20 +36,34 @@ const formatDate = (dateString: string) => { const formattedDate = formatDate(item["date-of-release"]) --- -