import { ContentListings } from '~/components/ContentListings/ContentListings.client' import { CodeBlock } from '~/features/ui/CodeBlock/CodeBlock' import { isFeatureEnabled } from 'common/enabled-features' import { LOCAL_COMMANDS } from './GettingStarted.data' import { FRAMEWORKS } from './GettingStarted.frameworks' import { GettingStartedStepperClient, GettingStartedVariantSwitch, } from './GettingStartedStepper.client' // code blocks highlight on the server, so this component renders them for the client view export const GettingStartedStepper = () => { const installCommands = [ ...new Set(FRAMEWORKS.flatMap((framework) => (framework.install ? [framework.install] : []))), ] return ( {isFeatureEnabled('docs:framework_quickstarts') ? ( ) : null} {isFeatureEnabled('docs:web_apps') ? ( ) : null} {isFeatureEnabled('docs:mobile_tutorials') ? ( ) : null} } > } installCodes={Object.fromEntries( installCommands.map((command) => [ command, , ]) )} /> ) }