OneLauncher-Cracked/apps/oneclient/frontend/src/components/ManageSkinButton.tsx
2025-11-13 02:37:20 -05:00

21 lines
712 B
TypeScript

import type { MinecraftCredentials } from '@/bindings.gen';
import { Button } from '@onelauncher/common/components';
import { useNavigate } from '@tanstack/react-router';
import { Pencil01Icon } from '@untitled-theme/icons-react';
import { useCallback } from 'react';
export function ManageSkinButton({ profile }: { profile: MinecraftCredentials }) {
const navigate = useNavigate();
const manageSkin = useCallback(() => navigate({ to: `/app/account/skins`, search: { profile, search: false } }), [profile, navigate]);
return (
<Button
className="group w-8 h-8"
color="ghost"
onPress={manageSkin}
size="icon"
>
<Pencil01Icon className="group-hover:stroke-brand-hover" />
</Button>
);
}