diff --git a/src/components/board/boardVentureCards.astro b/src/components/board/boardVentureCards.astro index 97b2e128d..bbcf33c72 100644 --- a/src/components/board/boardVentureCards.astro +++ b/src/components/board/boardVentureCards.astro @@ -1,20 +1,23 @@ --- import ventureCards from "~/data/venturecards.yml"; -import type { MapDescriptorExtended } from '~/lib/getboards'; interface Props { - board: MapDescriptorExtended; + activeVentureCards?: number[]; + disabled?: boolean; + onchange?: string; } -const { board } = Astro.props; +const { activeVentureCards = [], disabled = true, onchange = '' } = Astro.props; --- -
-
- {ventureCards.map((ventureCard, index) => ( -
#${index + 1}
${ventureCard.description}`}/> - ))} -
-
+{ventureCards.map((ventureCard, index) => ( + <> + {disabled? ( +
#${index + 1}
${ventureCard.description}`}/> + ) : ( + + + + )} + +))}