mirror of https://github.com/zulip/zulip.git
9 lines
219 B
TypeScript
9 lines
219 B
TypeScript
|
import {realm} from "./state_data";
|
||
|
|
||
|
export function is_giphy_enabled(): boolean {
|
||
|
return (
|
||
|
realm.giphy_api_key !== "" &&
|
||
|
realm.realm_giphy_rating !== realm.giphy_rating_options.disabled.id
|
||
|
);
|
||
|
}
|