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 | 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 24x 32x 24x 7x | import { TRiskLevel } from "@components/Merchants/MerchantPreview/RiskProfile/types";
export const SET_MANUAL_RISK_LEVEL_ACTION_LABEL = "Set Minimum Risk Level";
export const SET_MANUAL_RISK_LEVEL_MODAL_TITLE = "Set Manual Minimum Risk Level";
export const MINIMUM_RISK_LEVEL_SECTION_TITLE = "Minimum Risk Level";
export const CURRENT_RISK_SUMMARY_TITLE = "Current Risk Summary";
export const MERCHANT_SECTION_TITLE = "Merchant";
export const RISK_REASON_LABEL = "Comment";
export const MANUAL_RISK_LEVEL_THREAD_NAME = "Manual Risk Level";
export const RISK_REASON_PLACEHOLDER = "Write a comment";
export const MANUAL_OVERRIDE_CHIP_LABEL = "Manual";
export const NONE_OPTION_VALUE = "none" as const;
export const SAVE_DISABLED_TOOLTIP =
"Automatic risk level is currently applied for this merchant. Select a manual risk level and add a comment to save the changes.";
export const RISK_LEVEL_OPTIONS: { value: TRiskLevel; label: string }[] = [
{ value: "low", label: "Low" },
{ value: "medium", label: "Medium" },
{ value: "high", label: "High" },
{ value: "critical", label: "Critical" },
];
export const NONE_OPTION_LABEL = "None (Use automated risk level)";
export const belowComputedTooltip = (computed: string): string =>
`The current automatic risk level is already ${computed}. Clear the ${computed} risk level before setting a minimum risk level.`;
export const manualOverrideTooltip = (
effective: string,
automated: string,
setBy?: string | null,
): string =>
`Risk level manually set to ${effective}${
setBy ? ` by ${setBy}` : ""
}. Automated level: ${automated}.`;
|