2025-01-28 23:23:42 +03:00
|
|
|
import { LocationIcon } from '@/components/DomainIcons';
|
2024-06-04 11:19:21 +03:00
|
|
|
import { globals } from '@/utils/constants';
|
|
|
|
|
|
|
|
interface BadgeLocationProps {
|
2024-11-21 15:09:51 +03:00
|
|
|
/** Location to display. */
|
2024-06-04 11:19:21 +03:00
|
|
|
location: string;
|
|
|
|
}
|
|
|
|
|
2024-11-21 15:09:51 +03:00
|
|
|
/**
|
|
|
|
* Displays location icon with a full text tooltip.
|
|
|
|
*/
|
2025-02-19 23:30:35 +03:00
|
|
|
export function BadgeLocation({ location }: BadgeLocationProps) {
|
2024-06-04 11:19:21 +03:00
|
|
|
return (
|
|
|
|
<div className='pl-2' data-tooltip-id={globals.tooltip} data-tooltip-content={location}>
|
|
|
|
<LocationIcon value={location} size='1.25rem' />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|