💾 Archived View for iich.space › src › views › admin › AdminBansPage.ts captured on 2021-12-03 at 14:04:38.

View Raw

More Information

-=-=-=-=-=-=-

import { Template } from '@/mission-control';

import Header from '../Header';
import { Ban } from '~/db/models';

interface Props {
  bans: Array<Ban>;
}

const AdminBansPage: Template<Props> = (
  { each, include, link },
  { bans },
): string => `
${include(Header)}
=> / Index
=> /admin Back

${each(
  bans,
  (ban) => `
${ban.origin}
${link(`/admin/bans/${ban.origin}`, 'unban')}
`,
  2,
)}
`;

export default AdminBansPage;