OneLauncher-Cracked/apps/oneclient/frontend/src/components/DeleteAccountButton.tsx
Jacob 387630537d
Fix/mini accounts edit (#384)
* fix: mini accounts skin manager

Fix opening the skin manager by moving it to the new logic
Put all this login into an component so this shouldn't happen again

* fix: formatting
2025-10-09 00:39:20 -04:00

19 lines
684 B
TypeScript

import type { MinecraftCredentials } from '@/bindings.gen';
import { Button } from '@onelauncher/common/components';
import { Trash01Icon } from '@untitled-theme/icons-react';
import { DialogTrigger } from 'react-aria-components';
import { Overlay, RemoveAccountModal } from './overlay';
export function DeleteAccountButton({ profile, onPress }: { profile: MinecraftCredentials; onPress: () => void }) {
return (
<DialogTrigger>
<Button className="group w-8 h-8" color="ghost" size="icon">
<Trash01Icon className="group-hover:stroke-danger" />
</Button>
<Overlay>
<RemoveAccountModal onPress={onPress} profile={profile} />
</Overlay>
</DialogTrigger>
);
}