import { Matrix } from "@/common/components/Matrix/Matrix";
import { OrganizationModel } from "@/contracts/client.schemas";

export const OrganizationListPage = () => {
	return (
		<Matrix<OrganizationModel>
			baseUrl="/api/organizations"
			columns={[
				{
					name: "name",
					title: "Name",
				},
			]}
			title="Organizations"
			canRemove={false}
			canCreate={false}
			canView={true}
			getModelTitle={(x) => x.name}
			notificationMethodPrefix="ORGANIZATIONS"
		/>
	);
};
