gitscope
← marzneshin / v0.6.2 / dashboard/src/features/services/components/tables/users/index.tsx
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/features/services/components/tables/users/index.tsx · TypeScript
Blame Raw
 1
 2import { FC } from "react";
 3import { DoubleEntityTable } from "@marzneshin/features/entity-table";
 4import { columns } from "./columns";
 5import { fetchServiceUsers, type ServiceType } from "@marzneshin/features/services";
 6
 7interface ServicesUsersTableProps {
 8    service: ServiceType
 9}
10
11export const ServicesUsersTable: FC<ServicesUsersTableProps> = ({ service }) => {
12
13    return (
14        <DoubleEntityTable
15            columns={columns}
16            entityId={service.id}
17            fetchEntity={fetchServiceUsers}
18            primaryFilter="username"
19            entityKey='services'
20        />
21    )
22}