/**
* About: product name, current version, links, and chronological release notes.
* Used as a Help menu tab and as a dialog opened from the version chip.
*/
import Box from '@mui/material/Box';
import Chip from '@mui/material/Chip';
import Dialog from '@mui/material/Dialog';
import DialogContent from '@mui/material/DialogContent';
import IconButton from '@mui/material/IconButton';
import Link from '@mui/material/Link';
import Tooltip from '@mui/material/Tooltip';
import Typography from '@mui/material/Typography';
import { ExternalLink, Info, X } from 'lucide-react';
import { ABOUT_CATALOG, APP_VERSION, type ReleaseNotes } from '../../content/releases';
const CARD_SX = {
mb: 1.25,
p: 1.5,
bgcolor: '#141a20',
border: '1px solid #232a31',
borderRadius: 1,
};
function ReleaseCard({ release, current }: { release: ReleaseNotes; current: boolean }) {
return (
v{release.version}
{release.date}
{current ? (
) : null}
{release.title}
{release.highlights.map((h) => (
{h}
))}
);
}
export function AboutPanel() {
const { name, version, description, links, releases } = ABOUT_CATALOG;
return (
{name}
{description}
GitHub
Hugging Face Space
Release notes
{releases.map((r) => (
))}
);
}
export function VersionChip({ onClick }: { onClick?: () => void }) {
const chip = (
);
if (!onClick) return chip;
return {chip};
}
export default function AboutDialog({ open, onClose }: { open: boolean; onClose: () => void }) {
return (
);
}