mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
21 lines
452 B
JavaScript
21 lines
452 B
JavaScript
'use client'
|
|
|
|
import { useState } from 'react'
|
|
import { getDualOptoutValue } from './actions'
|
|
|
|
export default function Page() {
|
|
const [optoutDisplayValue, setOptoutDisplayValue] = useState('')
|
|
return (
|
|
<div id="dual-pkg-outout">
|
|
<p>{optoutDisplayValue}</p>
|
|
<button
|
|
onClick={async () => {
|
|
setOptoutDisplayValue(await getDualOptoutValue())
|
|
}}
|
|
>
|
|
dual-pkg-optout
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|