ConceptPortal-public/rsconcept/frontend/src/components/info/BadgeLocation.tsx

22 lines
505 B
TypeScript
Raw Normal View History

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