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.

367 B
Raw Blame
import { createFormContext } from "@homarr/form";

export interface AccessFormType<TPermission extends string> {
  items: {
    principalId: string;
    permission: TPermission;
  }[];
}

export const [FormProvider, useFormContext, useForm] = createFormContext<AccessFormType<string>>();

export type HandleCountChange = (callback: (prev: number) => number) => void;