--- import { assertSecret, imgur, ImgurSize } from '@blitzkit/core'; import { CaretRightIcon } from '@radix-ui/react-icons'; import { Box, Button, Code, Flex, Heading, Link, Text } from '@radix-ui/themes'; import type { Tool } from '../constants/tools'; interface Props { tool: Tool; } const { tool } = Astro.props; const disabled = tool.branches?.every( (branch) => branch !== assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH), ); --- {tool.title} { disabled ? ( <> Unavailable on{' '} {assertSecret(import.meta.env.PUBLIC_ASSET_BRANCH)} ) : ( tool.description ) } { !disabled && ( ) }