import cx from 'classnames' import { CodeResponse } from './types' import { useTranslation } from 'components/hooks/useTranslation' import styles from './RestResponseTable.module.scss' type Props = { heading: string responses: Array } export function RestResponseTable({ heading, responses }: Props) { const { t } = useTranslation('products') return ( <>

{heading}

{responses.map((response, index) => { return ( ) })}
{t('rest.reference.http_status_code')} {t('rest.reference.description')}
{response.httpStatusCode} {response.description ? (
) : ( response.httpStatusMessage )}
) }