mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
19 lines
372 B
TypeScript
19 lines
372 B
TypeScript
import { Layout } from 'src/components/common'
|
|
import { useMessage } from 'src/components/contexts'
|
|
|
|
export default function Test() {
|
|
const { showMessageError } = useMessage()
|
|
|
|
const handleClick = () => {
|
|
showMessageError("Create account successfully")
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<button onClick={handleClick}>Click me</button>
|
|
</>
|
|
)
|
|
}
|
|
|
|
Test.Layout = Layout
|