import { Dialog } from '@/components/elements/dialog'; import SpinnerOverlay from '@/components/elements/SpinnerOverlay'; import Button from '@/components/elements/Button'; import { useCurrentUser } from '@/api/account/queries'; import { useConsolePatternTrigger } from '@/components/server/features/useConsolePatternTrigger'; const steamDiskSpaceErrors = ['steamcmd needs 250mb of free disk space to update', '0x202 after update job']; const SteamDiskSpaceFeature = () => { const dialog = useConsolePatternTrigger(steamDiskSpaceErrors); const loading = false; const isAdmin = useCurrentUser().rootAdmin; return ( {isAdmin ? ( <>

This server has run out of available disk space and cannot complete the install or update process.

Ensure the machine has enough disk space by typing{' '} df -h on the machine hosting this server. Delete files or increase the available disk space to resolve the issue.

) : ( <>

This server has run out of available disk space and cannot complete the install or update process. Please get in touch with the administrator(s) and inform them of disk space issues.

)}
); }; export default SteamDiskSpaceFeature;