2023-09-29 16:01:27 +02:00
|
|
|
// __SDEFILE__ - This file is a dependency for the stand-alone environment
|
2023-08-19 18:01:22 +02:00
|
|
|
import { BulletIcon } from 'shared/components/icons.mjs'
|
|
|
|
|
|
|
|
const scores = [1, 2, 3, 4, 5]
|
|
|
|
|
|
|
|
export const ControlScore = ({ control, color = 'base-content' }) =>
|
|
|
|
control ? (
|
|
|
|
<div className={`flex flex-row items-center text-${color}`}>
|
|
|
|
{scores.map((score) => (
|
2023-08-20 18:35:19 +02:00
|
|
|
<BulletIcon fill={control >= score ? true : false} className="w-6 h-6 -ml-1" key={score} />
|
2023-08-19 18:01:22 +02:00
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
) : null
|