import { Button } from '@mui/material' import { useRef } from 'react' import { DialogRef } from '@/components/base' import { useUpdate } from '@/hooks/use-update' import { UpdateViewer } from '../setting/mods/update-viewer' interface Props { className?: string } export const UpdateButton = (props: Props) => { const { className } = props const viewerRef = useRef(null) const { updateInfo } = useUpdate() if (!updateInfo?.available) return null return ( <> ) }