Untitled

mail@pastecode.io avatar
unknown
plain_text
9 days ago
487 B
1
Indexable
Never
import React, { ComponentProps } from "react";

import { MissingIdIndicator } from "@libs/shared/clickstream-provider";

import { isLocal, isUat } from "../environment-flags";

const MissingIdIndicatorWrapper = ({ children }: ComponentProps<typeof MissingIdIndicator>) => {
    if (!(isUat || isLocal)) {
        return <>{children}</>;
    }

    return <MissingIdIndicator>{children}</MissingIdIndicator>;
};

export { MissingIdIndicatorWrapper as MissingIdIndicator };
Leave a Comment