2023-11-15 15:32:04 +01:00
|
|
|
import { IconName, IconPrefix } from '@fortawesome/fontawesome-common-types';
|
2022-09-14 13:50:32 +02:00
|
|
|
import { CSSProperties } from 'react';
|
|
|
|
|
|
2023-11-15 15:28:21 +01:00
|
|
|
type IconAnimation = 'spin' | 'spinPulse' | 'spinReverse' | 'pulse' | 'beat' | 'fade' | 'beatFade' | 'bounce' | 'shake';
|
|
|
|
|
|
2022-09-14 13:50:32 +02:00
|
|
|
interface OptionsProps {
|
|
|
|
|
position?: 'right-center' | 'left-center' | 'top-center';
|
|
|
|
|
icon?: IconName | [IconPrefix, IconName];
|
|
|
|
|
iconColor?: string;
|
2023-11-15 15:28:21 +01:00
|
|
|
iconAnimation?: IconAnimation;
|
2022-09-14 13:50:32 +02:00
|
|
|
style?: CSSProperties;
|
2023-11-15 14:30:33 +01:00
|
|
|
alignIcon?: 'top' | 'center';
|
2022-09-14 13:50:32 +02:00
|
|
|
}
|
2023-11-15 14:30:33 +01:00
|
|
|
|
2022-09-14 13:50:32 +02:00
|
|
|
export const showTextUI = (text: string, options?: OptionsProps): void => exports.ox_lib.showTextUI(text, options);
|
|
|
|
|
|
|
|
|
|
export const hideTextUI = (): void => exports.ox_lib.hideTextUI();
|
2022-10-14 17:17:57 +02:00
|
|
|
|
|
|
|
|
export const isTextUIOpen = (): boolean => exports.ox_lib.isTextUIOpen();
|