@actinc/dls
Version:
Design Language System (DLS) for ACT & Encoura front-end projects.
34 lines • 1.25 kB
TypeScript
/**
* Copyright (c) ACT, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ButtonProps, DialogContentProps, DialogTitleProps } from '@mui/material';
import { FC, ReactElement, ReactNode } from 'react';
import { DialogProps } from '../Dialog';
export interface SessionTimerProps {
children?: ({ remainingTimeStageOne, remainingTimeStageTwo, }: {
remainingTimeStageOne: number;
remainingTimeStageTwo: number;
}) => ReactElement<unknown> | null;
dialogContinueSessionProps?: {
confirmationButtonProps?: ButtonProps;
confirmationText?: ReactNode;
cancellationButtonProps?: ButtonProps;
cancellationText?: ReactNode;
content?: ReactNode | null;
contentProps?: DialogContentProps;
dialogProps?: Omit<DialogProps, 'open'>;
title?: ReactNode;
titleProps?: DialogTitleProps;
};
expiresAt: Date;
onExpire: () => void;
onKeepAlive: () => void;
promptWithMsRemaining: number;
tokenMaxAgeMs: number;
}
export declare const SessionTimer: FC<SessionTimerProps>;
export default SessionTimer;
//# sourceMappingURL=index.d.ts.map