import { Avatar, Box, Link, styled, Typography } from '@mui/material'; import type { FC } from 'react'; import { formatAssetPath } from 'utils/formatPath'; import { SectionHeader, StepperBox } from './SharedComponents'; import { clientSdks, type Sdk, serverSdks } from './sharedTypes'; import { Stepper } from './Stepper'; import { Badge } from '../common/Badge/Badge'; const SpacedContainer = styled('div')(({ theme }) => ({ padding: theme.spacing(5, 8, 8, 8), display: 'flex', flexDirection: 'column', gap: theme.spacing(3), })); const SecondarySectionHeader = styled('div')(({ theme }) => ({ marginTop: theme.spacing(4), marginBottom: theme.spacing(2), fontSize: theme.typography.body1.fontSize, })); const SdkListSection = styled('div')(({ theme }) => ({ backgroundColor: theme.palette.background.elevation1, borderRadius: theme.shape.borderRadius, padding: theme.spacing(6), display: 'flex', columnGap: theme.spacing(2), rowGap: theme.spacing(5), alignItems: 'center', justifyContent: 'flex-start', flexWrap: 'wrap', })); const SdkTile = styled('div')(({ theme }) => ({ fontSize: theme.typography.body2.fontSize, backgroundColor: theme.palette.background.default, borderRadius: theme.shape.borderRadius, padding: theme.spacing(2, 3), width: '170px', position: 'relative', })); const SdkTileContent = styled('div')(() => ({ display: 'flex', justifyContent: 'space-between', })); const StyledAvatar = styled(Avatar)(({ theme }) => ({ position: 'absolute', width: theme.spacing(4), height: theme.spacing(4), top: theme.spacing(-2.75), left: theme.spacing(2), boxShadow: theme.shadows[2], })); interface ISelectSdkProps { onSelect: (sdk: Sdk) => void; } export const SelectSdk: FC = ({ onSelect }) => { return ( Connect an SDK to Unleash 1/3 - Choose SDK Select SDK Server side SDKs {serverSdks.map((sdk) => ( {sdk.name}{' '} onSelect({ name: sdk.name, type: 'client', }) } component='button' > Select ))} Client side SDKs {clientSdks.map((sdk) => ( {sdk.name}{' '} onSelect({ name: sdk.name, type: 'frontend', }) } component='button' > Select ))} ); };