import { useParams } from "react-router-dom";

import { Matrix } from "../../../common/components/Matrix/Matrix";

export const TokenListPage = () => {
	const { organizationId } = useParams();

	const columns = [
		{
			name: "name",
			title: "Name",
		},
	];

	return (
		<Matrix
			title="Tokens"
			columns={columns}
			baseUrl="/api/tokens"
			filters={{
				organizationId,
			}}
			notificationMethodPrefix="TOKENS"
			getModelTitle={(x) => x.name}
			canCreate={true}
			canView={true}
		/>
	);
};
