react-checker-maker
Version:
React checker maker is a lightweight package that can be used to manage privileges in [React Js](https://reactjs.org). This package utilizes [React Router Dom](https://reactrouter.com) and allows for the addition of specific privileges to routes and eleme
13 lines (12 loc) • 503 B
TypeScript
import React, { FC } from 'react';
import { IPrivilege, IData, IRoles } from '../../contracts';
declare const PrivContent: FC<{
data: Array<IPrivilege> | undefined;
allowedPrivileges: number[];
setRolesPriv?: React.Dispatch<React.SetStateAction<IData | null>>;
roleId?: number | null;
roles?: IRoles[] | undefined;
handChildChange?: (id: number, checked: boolean) => void;
handChange?: (id: number, checked: boolean, child: number[]) => void;
}>;
export default PrivContent;