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

export const OrganizationListPage = () => {
	const columns = [
		{
			name: "name",
			title: "Name",
		},
		{
			name: "description",
			title: "Description",
		},
	];

	return (
		<Matrix
			title="Organizations"
			columns={columns}
			baseUrl="/api/organizations"
			notificationMethodPrefix="ORGANIZATIONS"
			getModelTitle={(x) => x.name}
			canCreate={true}
			canRemove={true}
			canView={true}
		/>
	);
};
