import { useTranslation } from 'components/hooks/useTranslation' type Props = { slug: string previews: Array } export function RestPreviewNotice({ slug, previews }: Props) { const { t } = useTranslation('products') return ( <>

{previews.length > 1 ? `${t('rest.reference.preview_notices')}` : `${t('rest.reference.preview_notice')}`}

{previews.map((preview, index) => (
))} ) }