import React from 'react';
import { List, Datagrid, TextField, DateField, EditButton, TextInput } from 'react-admin';

export const BannedWordList = () => (
    <List filters={[<TextInput source="word" alwaysOn />]}>
        <Datagrid rowClick="edit">
            <TextField source="word" />
            <DateField source="added_at" />
            <TextField source="added_by" />
            <EditButton />
        </Datagrid>
    </List>
);