openreplay/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsPerDomain/Bar.tsx
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

21 lines
580 B
TypeScript

import React from 'react';
import stl from './bar.module.css';
function Bar({ className = '', width = 0, avg, domain, color }) {
return (
<div className={className}>
<div className="flex items-center">
<div
className={stl.bar}
style={{ width: `${width > 0 ? width : 5}%`, backgroundColor: color }}
/>
<div className="ml-2">
<span className="font-medium">{`${avg}`}</span>
</div>
</div>
<div className="text-sm leading-3 color-gray-medium">{domain}</div>
</div>
);
}
export default Bar;