mirror of
https://github.com/ente-io/ente.git
synced 2025-07-10 00:54:13 +00:00
21 lines
697 B
TypeScript
21 lines
697 B
TypeScript
import type { MiniDialogAttributes } from "@/base/components/MiniDialog";
|
|
|
|
/**
|
|
* The type of the context expected to be present in the React tree for all apps
|
|
* that use the base package.
|
|
*/
|
|
export interface BaseContextT {
|
|
/**
|
|
* Perform the (possibly app specific) logout sequence.
|
|
*/
|
|
logout: () => void;
|
|
/**
|
|
* Show a "mini dialog" with the given attributes.
|
|
*
|
|
* Mini dialogs (see {@link AttributedMiniDialog}) are meant for simple
|
|
* confirmation or notications. Their appearance and functionality can be
|
|
* customized by providing appropriate {@link MiniDialogAttributes}.
|
|
*/
|
|
showMiniDialog: (attributes: MiniDialogAttributes) => void;
|
|
}
|