23 lines
722 B
TypeScript
23 lines
722 B
TypeScript
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>;
|
|
unitArr: Array<{
|
|
label: string;
|
|
value: Unit;
|
|
}>;
|
|
}, {
|
|
confirm: () => Promise<void>;
|
|
onBack: () => void;
|
|
setInit: () => void;
|
|
setPeriod: (p: number) => void;
|
|
setUnit: (u: Unit) => void;
|
|
}>): JSX.Element;
|
|
export {};
|