first
This commit is contained in:
commit
8538ab969a
434 changed files with 44051 additions and 0 deletions
12
apps/web/modules/saas/organizations/hooks/member-roles.ts
Normal file
12
apps/web/modules/saas/organizations/hooks/member-roles.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import type { OrganizationMemberRole } from "@repo/auth";
|
||||
import { useTranslations } from "next-intl";
|
||||
|
||||
export function useOrganizationMemberRoles() {
|
||||
const t = useTranslations();
|
||||
|
||||
return {
|
||||
member: t("organizations.roles.member"),
|
||||
owner: t("organizations.roles.owner"),
|
||||
admin: t("organizations.roles.admin"),
|
||||
} satisfies Record<OrganizationMemberRole, string>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue