mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 23:16:03 +01:00
17 lines
600 B
TypeScript
17 lines
600 B
TypeScript
import { IconLookup, IconName, IconPrefix } from '@fortawesome/fontawesome-common-types';
|
|
import { CSSProperties } from 'react';
|
|
|
|
interface OptionsProps {
|
|
position?: 'right-center' | 'left-center' | 'top-center';
|
|
icon?: IconName | [IconPrefix, IconName];
|
|
iconColor?: string;
|
|
style?: CSSProperties;
|
|
alignIcon?: 'top' | 'center';
|
|
}
|
|
|
|
export const showTextUI = (text: string, options?: OptionsProps): void => exports.ox_lib.showTextUI(text, options);
|
|
|
|
export const hideTextUI = (): void => exports.ox_lib.hideTextUI();
|
|
|
|
export const isTextUIOpen = (): boolean => exports.ox_lib.isTextUIOpen();
|