import { useTranslation } from 'components/hooks/useTranslation' type Props = { slug: string numPreviews: number } export function PreviewsRow({ slug, numPreviews }: Props) { const { t } = useTranslation('products') return (
accept
Setting to
application/vnd.github.v3+json is recommended.
{numPreviews > 0 && (
{numPreviews > 1
? ` ${t('rest.reference.see_preview_notices')}`
: ` ${t('rest.reference.see_preview_notice')}`}
)}