import Link from 'next/link'; import { DataColumn, DataTable, DataTableProps } from '@umami/react-zen'; import { useFormat, useMessages, useNavigation } from '@/components/hooks'; import { Avatar } from '@/components/common/Avatar'; import { TypeIcon } from '@/components/common/TypeIcon'; import { DateDistance } from '@/components/common/DateDistance'; export function SessionsTable(props: DataTableProps) { const { formatMessage, labels } = useMessages(); const { formatValue } = useFormat(); const { updateParams } = useNavigation(); return ( {(row: any) => ( )} {(row: any) => ( {formatValue(row.country, 'country')} )} {(row: any) => ( {formatValue(row.browser, 'browser')} )} {(row: any) => ( {formatValue(row.os, 'os')} )} {(row: any) => ( {formatValue(row.device, 'device')} )} {(row: any) => } ); }