import Grid from "@mui/material/Grid"; import Typography from "@mui/material/Typography"; import Box from "@mui/material/Box"; import Stack from "@mui/material/Stack"; import Divider from "@mui/material/Divider"; import { Fragment } from "react"; // Hooks import { useTheme } from "@mui/material"; import { useSelector } from "react-redux"; import { useTranslation } from "react-i18next"; // Utils import type { DockerLogRow } from "@/Utils/MonitorUtils"; import { LAYOUT, SPACING } from "@/Utils/Theme/constants"; import { formatDateWithTz } from "@/Utils/TimeUtils"; import type { RootState } from "@/store"; export const RowLog = ({ row }: { row: DockerLogRow }) => { const theme = useTheme(); const uiTimezone = useSelector((state: RootState) => state.ui.timezone); const { t } = useTranslation(); return ( {formatDateWithTz(row.ts, "MMM D HH:mm:ss", uiTimezone)} {row.stream} : {row.text} {row.gapBefore ? ( {t("pages.docker.container.logs.skipped")} ) : ( )} ); };