import { toast } from "sonner"; import { Button } from "~/client/components/ui/button"; import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "~/client/components/ui/dialog"; import { copyToClipboard } from "~/utils/clipboard"; const RESET_PASSWORD_COMMAND = "docker exec -it zerobyte bun run cli reset-password"; type ResetPasswordDialogProps = { open: boolean; onOpenChange: (open: boolean) => void; }; export const ResetPasswordDialog = ({ open, onOpenChange }: ResetPasswordDialogProps) => { const handleCopy = async () => { await copyToClipboard(RESET_PASSWORD_COMMAND); toast.success("Command copied to clipboard"); }; return ( Reset your password To reset your password, run the following command on the server where Zerobyte is installed.
{RESET_PASSWORD_COMMAND}

This command will start an interactive session where you can enter a new password for your account.

); };