import { DataTable, Text } from "react-native-paper"; import { View } from "react-native"; import { UserLoginLog } from "@/store/api/usersApi"; import { formatDate, formatTime } from "@/utils/dateUtils"; import { LogsTableHeader } from "@/components/features/logs/LogsTableHeader"; import { TableSortDirection } from "@/constants/tableSortDirectionEnum"; interface DesktopLogsTableProps { logs: UserLoginLog[]; sortColumn: string | null; sortDirection: TableSortDirection; onSort: (column: string) => void; } export const DesktopLogsTable = ({ logs, sortColumn, sortDirection, onSort, }: DesktopLogsTableProps) => { return ( {logs.map((log) => ( {log.name} {log.email} {formatDate(log.lastLoginAt)} {formatTime(log.lastLoginAt)} {log.activity} ))} ); };