'use client'; import { Icon } from '@bentwnghk/ui'; import { Skeleton } from 'antd'; import { css, cx } from 'antd-style'; import { ChevronDown, ChevronUp } from 'lucide-react'; import dynamic from 'next/dynamic'; import { memo, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Flexbox } from 'react-layout-kit'; const container = css` pre.shiki { padding: 8px !important; } `; const Highlighter = dynamic(() => import('@bentwnghk/ui/es/Highlighter'), { loading: () => , ssr: false, }); const Description = memo<{ message: string; status: number }>(({ message, status }) => { const { t } = useTranslation('error'); const [show, setShow] = useState(false); return ( {t(`response.${status}` as any)} { setShow(!show); }} style={{ cursor: 'pointer', fontSize: 12 }} > {t('fetchError.detail')} {message} ); }); export default Description;