mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 04:50:36 +03:00
19 lines
494 B
TypeScript
19 lines
494 B
TypeScript
import { LocationIcon } from '@/components/DomainIcons';
|
|
import { globalIDs } from '@/utils/constants';
|
|
|
|
interface BadgeLocationProps {
|
|
/** Location to display. */
|
|
location: string;
|
|
}
|
|
|
|
/**
|
|
* Displays location icon with a full text tooltip.
|
|
*/
|
|
export function BadgeLocation({ location }: BadgeLocationProps) {
|
|
return (
|
|
<div className='pl-2' data-tooltip-id={globalIDs.tooltip} data-tooltip-content={location}>
|
|
<LocationIcon value={location} size='1.25rem' />
|
|
</div>
|
|
);
|
|
}
|