37 lines
1.1 KiB
TypeScript
37 lines
1.1 KiB
TypeScript
'use server';
|
|
import React from "react";
|
|
import TableComponent from "@/components/mutual/tableView/FullTableComp/component";
|
|
|
|
const TestPage = () => {
|
|
const baseUrl = "http://localhost:3000/api/tst";
|
|
const translations = {
|
|
firstName: "First Name",
|
|
lastName: "Last Name",
|
|
email: "Email",
|
|
phoneNumber: "Phone Number",
|
|
country: "Country",
|
|
description: "Description",
|
|
isDeleted: "Is Deleted",
|
|
isConfirmed: "Is Confirmed",
|
|
createdAt: "Created At",
|
|
updatedAt: "Updated At",
|
|
}
|
|
const columns = [
|
|
"firstName",
|
|
"lastName",
|
|
"email",
|
|
"phoneNumber",
|
|
"country",
|
|
"description",
|
|
"isDeleted",
|
|
"isConfirmed",
|
|
"createdAt",
|
|
"updatedAt",
|
|
]
|
|
const initPaginationDefault = { page: 1, size: 10, orderFields: [], orderTypes: [], query: {} }
|
|
return (
|
|
<TableComponent baseUrl={baseUrl} translations={translations} columns={columns} initPagination={initPaginationDefault} />
|
|
);
|
|
}
|
|
|
|
export default TestPage; |