import { ShieldCheck } from 'lucide-react'; import { useFormatDate } from '../../../hooks/useDateFormat'; import { fs } from '../../shared/DialogShell'; import type { VersionInfo } from './pluginModel'; /** A version number with its date and, when the author signed it, a quiet tick. */ export default function VersionLine({ v }: { v: VersionInfo }) { const { formatDate } = useFormatDate(); return ( v{v.version} {v.publishedAt && ( {formatDate(new Date(v.publishedAt))} )} {v.signed && } ); }