import {Text} from '@gravity-ui/uikit'; import {isNil} from 'lodash'; import {CellWithPopover} from '../../components/CellWithPopover/CellWithPopover'; import {CopyableValue} from '../../components/CopyableValue/CopyableValue'; import {InternalLinkButton} from '../../components/InternalLinkButton'; import {getVDiskLocationItems} from '../../components/VDiskInfo/getVDiskDetails'; import {getPDiskPagePath} from '../../routes'; import {useNewStorageViewEnabled} from '../../store/reducers/capabilities/hooks'; import type {VDiskData} from '../../store/reducers/vdisk/types'; import {cn} from '../../utils/cn'; import type {DiskDetailItem} from '../../utils/disks/diskInfo/getDiskLocationItems'; import {useIsViewerUser} from '../../utils/hooks/useIsUserAllowedToMakeChanges'; import {vDiskPageKeyset} from './i18n'; import './VDiskStorageDetails.scss'; const b = cn('ydb-vdisk-storage-details'); const LOCATION_IDS = ['datacenter', 'rack', 'fqdn', 'pdisk-path']; interface VDiskStorageDetailsProps { className?: string; data?: VDiskData; } function DetailItem({item}: {item: DiskDetailItem}) { const copyText = item.copyText === undefined ? undefined : String(item.copyText); return (