--- // Feature names are a fixed list; the `features` string is split per-character into a 1/0 availability mask. import Icon from '@ui/Icon.astro' import Subheader from '@ui/Subheader.astro' interface Props { price?: string users?: string | number category?: string features?: string /** ribbon color of the featured plan, e.g. "green"; the button is always primary */ featuredColor?: string } const { price = '79', users = 10, category = 'Enterprise', features = '1000', featuredColor } = Astro.props const featureNames = ['Sharing tools', 'Design tools', 'Private messages', 'Twitter API'] const availableFeatures = features.split('') ---
{ featuredColor && (
) }
{category}
${price}