Delete assets/js/dashboard/stats/locations/map-tooltip.tsx with huggingface_hub
Browse files
assets/js/dashboard/stats/locations/map-tooltip.tsx
DELETED
|
@@ -1,41 +0,0 @@
|
|
| 1 |
-
import classNames from 'classnames'
|
| 2 |
-
import React from 'react'
|
| 3 |
-
|
| 4 |
-
interface MapTooltipProps {
|
| 5 |
-
name: string
|
| 6 |
-
value: string
|
| 7 |
-
label: string
|
| 8 |
-
x: number
|
| 9 |
-
y: number
|
| 10 |
-
}
|
| 11 |
-
|
| 12 |
-
export const MapTooltip = ({ name, value, label, x, y }: MapTooltipProps) => (
|
| 13 |
-
<div
|
| 14 |
-
className={classNames(
|
| 15 |
-
'absolute',
|
| 16 |
-
'z-50',
|
| 17 |
-
'p-2',
|
| 18 |
-
'translate-x-2',
|
| 19 |
-
'translate-y-2',
|
| 20 |
-
'pointer-events-none',
|
| 21 |
-
'rounded-sm',
|
| 22 |
-
'bg-white',
|
| 23 |
-
'dark:bg-gray-800',
|
| 24 |
-
'shadow',
|
| 25 |
-
'dark:border-gray-850',
|
| 26 |
-
'dark:text-gray-200',
|
| 27 |
-
'dark:shadow-gray-850',
|
| 28 |
-
'shadow-gray-200'
|
| 29 |
-
)}
|
| 30 |
-
style={{
|
| 31 |
-
left: x,
|
| 32 |
-
top: y
|
| 33 |
-
}}
|
| 34 |
-
>
|
| 35 |
-
<div className="text-sm font-semibold">{name}</div>
|
| 36 |
-
<div className="flex items-center gap-x-1 text-sm">
|
| 37 |
-
<strong className="dark:text-indigo-400">{value}</strong>
|
| 38 |
-
{label}
|
| 39 |
-
</div>
|
| 40 |
-
</div>
|
| 41 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|