Add getDefaultTriggerVolumeLinkTrigger function in App.tsx
This commit is contained in:
@@ -329,6 +329,18 @@ function readVisibilityModeSelectValue(value: "toggle" | "show" | "hide"): boole
|
||||
}
|
||||
}
|
||||
|
||||
function getDefaultTriggerVolumeLinkTrigger(triggerOnEnter: boolean, triggerOnExit: boolean): InteractionTriggerKind {
|
||||
if (triggerOnEnter) {
|
||||
return "enter";
|
||||
}
|
||||
|
||||
if (triggerOnExit) {
|
||||
return "exit";
|
||||
}
|
||||
|
||||
return "enter";
|
||||
}
|
||||
|
||||
function getErrorMessage(error: unknown): string {
|
||||
if (error instanceof Error) {
|
||||
return error.message;
|
||||
|
||||
Reference in New Issue
Block a user