2021-10-08 16:04:26 -06:00
|
|
|
/*
|
2024-09-09 14:57:16 +01:00
|
|
|
Copyright 2024 New Vector Ltd.
|
2021-10-08 16:04:26 -06:00
|
|
|
Copyright 2021 The Matrix.org Foundation C.I.C.
|
|
|
|
|
|
2024-09-09 14:57:16 +01:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only
|
|
|
|
|
Please see LICENSE files in the repository root for full details.
|
2021-10-08 16:04:26 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import { UIComponent } from "../../settings/UIFeature";
|
|
|
|
|
import { ComponentVisibilityCustomisations } from "../ComponentVisibility";
|
|
|
|
|
|
|
|
|
|
export function shouldShowComponent(component: UIComponent): boolean {
|
|
|
|
|
return ComponentVisibilityCustomisations.shouldShowComponent?.(component) ?? true;
|
|
|
|
|
}
|