openreplay/frontend/app/components/Session_/BottomBlock/InfoLine.js
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

20 lines
547 B
JavaScript

import React from 'react';
import cn from 'classnames';
import cls from './infoLine.module.css';
function InfoLine({ children }) {
return <div className={cls.info}>{children}</div>;
}
function Point({ label, value, display = true, color, dotColor }) {
return display ? (
<div className={cls.infoPoint} style={{ color }}>
{dotColor != null && <div className={cn(cls.dot, `bg-${dotColor}`)} />}
<span className={cls.label}>{`${label}`}</span> {value}
</div>
) : null;
}
InfoLine.Point = Point;
export default InfoLine;