Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | import { SxProps } from "@mui/material";
import { GiveTooltipProps } from "@shared/Tooltip/GiveTooltip.types";
import React from "react";
export type TEmptyStateWrapperSection =
| "no-filter-results"
| "merchant"
| "emptyTab"
| "provider"
| "products"
| "empty-search"
| "empty-search-and-filter"
| "events"
| "developer"
| "manage-money"
| "customers"
| "empty-mcc"
| "no-filter-results-customers"
| "empty-team-members-list"
| "empty-settings-team-members"
| "customers-list"
| "bank-accounts"
| "bank-accounts-with-action"
| "business-owner"
| "pah"
| "business-profile"
| "not-authorized"
| "no-mentions"
| "no-team-conversations"
| "no-merchant-conversations"
| "empty-mcc-provider"
| "pah-no-full-name"
| "transactions"
| "event-tickets"
| "event-hosts"
| "event-hosts-invited-only"
| "assign-host"
| "assign-host-search"
| "event-inventory"
| "transfers"
| "disputes"
| "acquirer-provider-manage-money"
| "empty-legal-documents"
| "settlements-transactions"
| "settlements"
| "no-activity"
| "settlements-merchants"
| "no-bank-accounts";
type TTitle = {
main?: string;
secondary?: string | React.ReactElement;
};
export type TEmptyStateAction = {
label: string;
handleAction?: (...args: any[]) => void;
disabled?: boolean;
startIcon?: JSX.Element;
/**
* Defaults to "outline" — the single-action look every other empty state
* uses. Set to "filled" only where a state offers two actions and one of them
* is the primary one (see `secondaryAction`).
*/
variant?: "filled" | "outline";
/**
* This button's own tooltip, for a two-action state whose buttons carry
* different gates — an empty Host tab's Assign is gated on updating the
* member's assignments and its Invite on creating a member, so one shared
* message would be wrong for whichever it does not describe. Falls back to
* the state-level `actionTooltipProps`.
*/
tooltipProps?: Partial<GiveTooltipProps>;
};
export type GiveEmptyStateType = {
title: TTitle;
sx?: SxProps;
Icon?: JSX.Element;
iconContainerSx?: SxProps;
action?: TEmptyStateAction;
/**
* A second, lower-priority button drawn to the right of `action`. Only for
* states that genuinely offer two ways forward — an empty Host tab can be
* filled either by assigning an existing host or by inviting a new one
* (frame 8089-55598).
*/
secondaryAction?: TEmptyStateAction;
actionTooltipProps?: Partial<GiveTooltipProps>;
dataTestId?: string;
};
|