13 lines
372 B
TypeScript
13 lines
372 B
TypeScript
|
|
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>;
|
||
|
|
}
|