23 lines
646 B
TypeScript
23 lines
646 B
TypeScript
'use client';
|
|
|
|
import { DataTable } from '@/shared/components/dataTable/DataTable';
|
|
|
|
import GGramaticaColumns from './GGramaticaColumns';
|
|
import GGramaticaTableInterface from '../../interfaces/GGramatica/GGramaticaTableInterface';
|
|
|
|
/**
|
|
* Componente principal da tabela de Naturezas
|
|
*/
|
|
export default function GGramaticaTable({ data, onEdit, onDelete }: GGramaticaTableInterface) {
|
|
const columns = GGramaticaColumns(onEdit, onDelete);
|
|
return (
|
|
<div>
|
|
<DataTable
|
|
data={data}
|
|
columns={columns}
|
|
filterColumn="palavra"
|
|
filterPlaceholder="Buscar por descrição da natureza..."
|
|
/>
|
|
</div>
|
|
);
|
|
}
|