---
import Icon from './Icon.astro';
import type { T } from '../i18n/strings';

interface Props { t: T }
const { t } = Astro.props;

const docs = [
  { icon: 'rocket', t: 'docs.1t', d: 'docs.1d' },
  { icon: 'circle-help', t: 'docs.2t', d: 'docs.2d' },
  { icon: 'shield-check', t: 'docs.3t', d: 'docs.3d' },
  { icon: 'lock', t: 'docs.4t', d: 'docs.4d' },
];
---
<section id="docs">
  <div class="wrap center">
    <div class="eyebrow">{t('docs.eyebrow')}</div>
    <h2 class="h-sec">{t('docs.h')}</h2>
    <p class="sub-sec">{t('docs.sub')}</p>
  </div>
  <div class="wrap">
    <div class="docs-grid">
      {docs.map((d) => (
        <a class="doc">
          <div class="ico"><Icon name={d.icon} /></div>
          <h3>{t(d.t)}</h3>
          <p>{t(d.d)}</p>
          <span class="ln">{t('docs.read')}</span>
        </a>
      ))}
    </div>
  </div>
</section>
