22 lines
774 B
TypeScript
22 lines
774 B
TypeScript
import React from 'react';
|
|
import { WebComponentProps } from 'oak-frontend-base';
|
|
import { EntityDict } from '../../../../oak-app-domain';
|
|
type Unit = 'minute' | 'hour' | 'day';
|
|
export default function render(props: WebComponentProps<EntityDict, 'userEntityGrant', false, {
|
|
relations: EntityDict['relation']['OpSchema'][];
|
|
period: number;
|
|
userEntityGrant: EntityDict['userEntityGrant']['OpSchema'];
|
|
userEntityGrantId: string;
|
|
unit: Unit;
|
|
maxes: Record<Unit, number>;
|
|
rules: EntityDict['userEntityGrant']['OpSchema']['rule'][];
|
|
oakExecutable: boolean;
|
|
}, {
|
|
confirm: () => Promise<void>;
|
|
onBack: () => void;
|
|
setInit: () => void;
|
|
setPeriod: (p: number) => void;
|
|
setUnit: (u: Unit) => void;
|
|
}>): React.JSX.Element;
|
|
export {};
|