46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
import FullCardTableComp from "@/components/mutual/tableView/FullCardTableComp/component";
|
|
import { ContentProps } from "@/validations/mutual/dashboard/props";
|
|
|
|
// This is a mock page dont use it
|
|
const superUserTenantSomethingSecond: React.FC<ContentProps> = ({ lang, translations, activePageUrl }) => {
|
|
const urls = {
|
|
list: "http://localhost:3000/api/tst",
|
|
}
|
|
const tableTranslations = {
|
|
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 redirectUrls = {}
|
|
const schemas = {}
|
|
const initPaginationDefault = { page: 1, size: 10, orderFields: [], orderTypes: [], query: {} }
|
|
return (
|
|
<>
|
|
{JSON.stringify(translations)}
|
|
<FullCardTableComp urls={urls} translations={tableTranslations} columns={columns}
|
|
initPagination={initPaginationDefault} schemas={schemas} redirectUrls={redirectUrls} />
|
|
</>
|
|
);
|
|
}
|
|
|
|
|
|
export default superUserTenantSomethingSecond |