OneLauncher-Cracked/apps/oneclient/frontend/src/components/MadeBy.tsx
Jacob adf9f4bd63
feat: debug page (#493)
* fix: discordRPC route sorting

It wasn't alphabetical and it was annoying me

* feat: debug page

* move stuff into hooks where they should be

* fix: building
2026-03-06 01:25:03 -05:00

21 lines
685 B
TypeScript

import { copyDebugInfo } from '@/hooks/useDebugInfo';
import { bindings } from '@/main';
import { useCommand } from '@onelauncher/common';
import { Button } from '@onelauncher/common/components';
export function MadeBy() {
const { data: version } = useCommand(['getPackageVersion'], () => bindings.debug.getPackageVersion());
const { data: isInDev } = useCommand(['isInDev'], () => bindings.debug.isInDev());
return (
<Button
className="flex flex-col items-start p-4 text-xs text-fg-secondary"
color="ghost"
onClick={copyDebugInfo}
>
<p>OneClient by Polyfrost</p>
<p>Version {version}</p>
<p>{isInDev ? 'Development' : 'Release'} Build</p>
</Button>
);
}