import { Box, Checkbox, Typography } from '@mui/material'; import { formatSize } from '@/utils/storageCleaner'; import { storageCleanerPageStyles } from '@/config/pageTheme'; interface OptionItemProps { label: string; checked: boolean; size?: number; isCount?: boolean; onChange: () => void; } export default function OptionItem({ label, checked, size, isCount = false, onChange, }: OptionItemProps) { return ( {label} {size !== undefined && size > 0 ? ( {isCount ? `${size} 个` : formatSize(size)} ) : ( 无数据 )} ); }