<script lang="ts">
  import { t } from 'svelte-i18n';
</script>

<div class="mt-4 text-sm">
  <h4 class="uppercase">{$t('other_variables')}</h4>
</div>

<div class="p-4 mt-2 text-xs bg-gray-200 rounded-lg dark:bg-gray-700 dark:text-immich-dark-fg">
  <div class="flex gap-12">
    <div>
      <p class="uppercase font-medium text-primary">{$t('filename')}</p>
      <ul>
        <li>{`{{filename}}`} - IMG_123</li>
        <li>{`{{ext}}`} - jpg</li>
      </ul>
    </div>

    <div>
      <p class="uppercase font-medium text-primary">{$t('filetype')}</p>
      <ul>
        <li>{`{{filetype}}`} - VID or IMG</li>
        <li>{`{{filetypefull}}`} - VIDEO or IMAGE</li>
      </ul>
    </div>
    <div>
      <p class="uppercase font-medium text-primary">{$t('album')}</p>
      <ul>
        <li>{`{{album}}`} - Album Name</li>
        <li>
          {`{{album-startDate-x}}`} - Album Start Date and Time (e.g. album-startDate-yy).
          {$t('admin.storage_template_date_time_sample', { values: { date: '2021-12-31T05:32:41.750' } })}
        </li>
        <li>
          {`{{album-endDate-x}}`} - Album End Date and Time (e.g. album-endDate-MM).
          {$t('admin.storage_template_date_time_sample', { values: { date: '2023-05-06T09:15:17.100' } })}
        </li>
      </ul>
    </div>
    <div>
      <p class="uppercase font-medium text-primary">{$t('camera')}</p>
      <ul>
        <li>{`{{make}}`} - FUJIFILM</li>
        <li>{`{{model}}`} - X-T50</li>
        <li>{`{{lensModel}}`} - XF27mm F2.8 R WR</li>
      </ul>
    </div>
    <div>
      <p class="uppercase font-medium text-primary">{$t('other')}</p>
      <ul>
        <li>{`{{assetId}}`} - Asset ID</li>
        <li>{`{{assetIdShort}}`} - Asset ID (last 12 characters)</li>
      </ul>
    </div>
  </div>
</div>
