import { Template } from '@/mission-control'; import Header from '../Header'; import { Ban } from '~/db/models'; interface Props { bans: Array; } const AdminBansPage: Template = ( { 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;