import { Box, Typography } from '@mui/material'; import React from 'react'; import { useTranslation } from 'react-i18next'; export interface LastUpdatedIndicatorProps { lastUpdated: Date | null; } /** * Component to display when the prompt preview was last updated * Shows timestamp and update method (manual, auto, or initial) */ export const LastUpdatedIndicator: React.FC = ({ lastUpdated }) => { const { t } = useTranslation('agent'); if (!lastUpdated) return null; return ( {t('Prompt.LastUpdated')}: {lastUpdated.toLocaleTimeString()} ); };