2025-02-20 18:10:34 +03:00
|
|
|
import { globalIDs } from '@/utils/constants';
|
2024-06-07 20:17:03 +03:00
|
|
|
|
2025-02-26 00:16:22 +03:00
|
|
|
import { IconLocationHead } from './IconLocationHead';
|
|
|
|
|
2024-06-07 20:17:03 +03:00
|
|
|
interface BadgeLocationProps {
|
2024-11-21 15:09:31 +03:00
|
|
|
/** Location to display. */
|
2024-06-07 20:17:03 +03:00
|
|
|
location: string;
|
|
|
|
}
|
|
|
|
|
2024-11-21 15:09:31 +03:00
|
|
|
/**
|
|
|
|
* Displays location icon with a full text tooltip.
|
|
|
|
*/
|
2025-02-19 23:29:45 +03:00
|
|
|
export function BadgeLocation({ location }: BadgeLocationProps) {
|
2024-06-07 20:17:03 +03:00
|
|
|
return (
|
2025-02-20 18:10:34 +03:00
|
|
|
<div className='pl-2' data-tooltip-id={globalIDs.tooltip} data-tooltip-content={location}>
|
2025-02-26 00:16:22 +03:00
|
|
|
<IconLocationHead value={location} size='1.25rem' />
|
2024-06-07 20:17:03 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|