37 lines
889 B
TypeScript
37 lines
889 B
TypeScript
import { DatabaseBackupIcon, PartyPopperIcon } from 'lucide-react';
|
|
import { PaginatedTable } from '../../../_components/PaginatedTable';
|
|
import Link from 'next/link';
|
|
|
|
export default () => {
|
|
return (
|
|
<>
|
|
<PaginatedTable
|
|
showEditButton
|
|
prismaModel="event"
|
|
columns={[
|
|
{
|
|
header: 'Name',
|
|
accessorKey: 'name',
|
|
},
|
|
{
|
|
header: 'Versteckt',
|
|
accessorKey: 'hidden',
|
|
},
|
|
]}
|
|
leftOfSearch={
|
|
<span className="flex items-center gap-2">
|
|
<PartyPopperIcon className="w-5 h-5" /> Events
|
|
</span>
|
|
}
|
|
rightOfSearch={
|
|
<Link href={'/admin/event/new'}>
|
|
<button className="btn btn-sm btn-outline btn-primary">
|
|
Erstellen
|
|
</button>
|
|
</Link>
|
|
}
|
|
/>
|
|
</>
|
|
);
|
|
};
|