You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/client/shared/components/DevContainer.tsx

12 lines
399 B
TypeScript

import React, { Fragment, PropsWithChildren } from 'react';
import { isDevelopment } from '../utils/environment';
/**
*
*
*/
export const DevContainer: React.FC<PropsWithChildren> = React.memo((props) => {
return isDevelopment ? <Fragment>{props.children}</Fragment> : null;
});
DevContainer.displayName = 'DevContainer';