frigate/web/src/components/LiveChip.jsx

22 lines
704 B
React
Raw Normal View History

2022-01-13 08:55:18 +03:00
import { h } from 'preact';
2022-01-13 01:53:50 +03:00
export function LiveChip({ className }) {
return (
2022-01-13 08:55:18 +03:00
<div
className={`inline relative px-2 py-1 rounded-full ${className}`}
style={{ backgroundColor: 'rgba(255, 255, 255, 0.1)' }}
>
2022-01-13 01:53:50 +03:00
<div className='relative inline-block w-3 h-3 mr-2'>
2022-01-13 08:55:18 +03:00
<span class='flex h-3 w-3'>
<span
class='animate-ping absolute inline-flex h-full w-full rounded-full opacity-75'
style={{ backgroundColor: 'rgb(74 222 128)' }}
></span>
<span class='relative inline-flex rounded-full h-3 w-3' style={{ backgroundColor: 'rgb(74 222 128)' }}></span>
2022-01-13 01:53:50 +03:00
</span>
</div>
<span>Live</span>
</div>
2022-01-13 08:55:18 +03:00
);
2022-01-13 01:53:50 +03:00
}