Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

350 B
Raw Blame
import { useSession } from "@homarr/auth/client";
import type { BoardPermissionsProps } from "@homarr/auth/shared";
import { constructBoardPermissions } from "@homarr/auth/shared";

export const useBoardPermissions = (board: BoardPermissionsProps) => {
  const { data: session } = useSession();
  return constructBoardPermissions(board, session);
};