feat: add zap setup screen

This commit is contained in:
2024-03-10 16:39:23 +07:00
parent 0c4b309a11
commit bb6badfed6
17 changed files with 121 additions and 248 deletions

View File

@@ -1,9 +1,22 @@
import { useArk } from "@lume/ark";
import { ZapIcon } from "@lume/icons";
export function NoteZap() {
const ark = useArk();
const zap = async () => {
const nwc = await ark.nwc_status();
if (!nwc) {
ark.open_nwc();
} else {
ark.open_zap();
}
};
return (
<button
type="button"
onClick={zap}
className="group inline-flex size-7 items-center justify-center text-neutral-800 dark:text-neutral-200"
>
<ZapIcon className="size-5 group-hover:text-blue-500" />