mirror of
https://github.com/cheveguerra/bot-whatsapp.git
synced 2026-04-21 04:59:15 +00:00
32 lines
589 B
TypeScript
32 lines
589 B
TypeScript
import {
|
|
component$,
|
|
useClientEffect$,
|
|
useStore,
|
|
useStylesScoped$,
|
|
} from '@builder.io/qwik'
|
|
import style from './qr.css?inline'
|
|
|
|
export const QR = component$(() => {
|
|
useStylesScoped$(style)
|
|
const state = useStore({
|
|
count: 0,
|
|
})
|
|
|
|
useClientEffect$(() => {
|
|
setInterval(() => {
|
|
state.count++
|
|
}, 800)
|
|
})
|
|
|
|
return (
|
|
<div>
|
|
<img
|
|
width={350}
|
|
height={350}
|
|
src={'qr.png?time=' + state.count}
|
|
alt="QR"
|
|
/>
|
|
</div>
|
|
)
|
|
})
|