import { Box, List, Typography } from '@mui/material'; import LinkIcon from '@mui/icons-material/Link'; import UrlEntryItem from './UrlEntryItem'; import type { OpenUrlEntry } from '@/types/storage'; import type { SnackbarOptions } from '@/components/GlobalSnackbar'; interface UrlEntryListProps { entries: OpenUrlEntry[]; onDeleteEntry: (index: number) => void; showMessage: (message: string, options?: SnackbarOptions) => void; } const UrlEntryList = ({ entries, onDeleteEntry, showMessage }: UrlEntryListProps) => { if (entries.length === 0) { return ( 暂无快捷方式,请在上方添加 ); } return ( {entries.map((entry, index) => ( ))} ); }; export default UrlEntryList;