import { get } from 'radash' import { TextView } from '#components/Map/Subcomponents/ItemPopupComponents' import type { Item } from '#types/Item' export const ProfileTextView = ({ item, dataField = 'text', heading, hideWhenEmpty, }: { item: Item dataField: string heading: string hideWhenEmpty: boolean }) => { const text = get(item, dataField) const parsedText = typeof text !== 'string' ? '' : text return (