| 1 |
import { __ } from '@wordpress/i18n'; |
| 2 |
|
| 3 |
export const CardsTitle = ({ total = 8, totalCompleted = 3 }) => ( |
| 4 |
<div className="flex w-full items-center justify-between space-x-2 border-b border-gray-300 px-5 py-3.5 lg:px-6"> |
| 5 |
<span className="text-base font-semibold"> |
| 6 |
{__('Site Guide', 'extendify-local')} |
| 7 |
</span> |
| 8 |
<div className="flex w-3/5 items-center gap-2"> |
| 9 |
<div className="h-2.5 w-full rounded-xl bg-gray-300"> |
| 10 |
<div |
| 11 |
className="h-2.5 rounded-xl bg-design-main" |
| 12 |
style={{ |
| 13 |
width: `${100 / (total / totalCompleted)}%`, |
| 14 |
}} |
| 15 |
></div> |
| 16 |
</div> |
| 17 |
<div className="text-xs text-gray-700"> |
| 18 |
{totalCompleted}/{total} |
| 19 |
</div> |
| 20 |
</div> |
| 21 |
</div> |
| 22 |
); |
| 23 |
|