Portal/rsconcept/frontend/src/features/library/components/BadgeLocation.tsx

20 lines
497 B
TypeScript
Raw Normal View History

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 {
/** Location to display. */
2024-06-07 20:17:03 +03:00
location: string;
}
/**
* 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>
);
}