import { colors } from 'themes/colors'; import { Alert, styled } from '@mui/material'; import { SdkContextSchema } from 'component/playground/Playground/interfaces/playground.model'; interface IContextBannerProps { environment: string; projects?: string | string[]; context: SdkContextSchema; } const StyledContextFieldList = styled('ul')(({ theme }) => ({ color: colors.black, listStyleType: 'none', padding: theme.spacing(2), })); export const ContextBanner = ({ environment, projects = [], context, }: IContextBannerProps) => { return ( Your results are generated based on this configuration:
  • environment: {environment}
  • projects:{' '} {Array.isArray(projects) ? projects.join(', ') : projects}
  • {Object.entries(context).map(([key, value]) => (
  • {key}: {value}
  • ))}
    ); };