mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
22 lines
566 B
TypeScript
22 lines
566 B
TypeScript
import { useEffect, useState } from 'react'
|
|
import {
|
|
ButtonCommon, Layout
|
|
} from 'src/components/common'
|
|
export default function Test() {
|
|
const [isLoading, setisLoading] = useState(false)
|
|
useEffect(() => {
|
|
setTimeout(() => {
|
|
setisLoading(true)
|
|
}, 3000)
|
|
}, [])
|
|
return (
|
|
<>
|
|
<ButtonCommon loading={isLoading}>Back to home</ButtonCommon>
|
|
<ButtonCommon type='light' loading={isLoading}>Back to home</ButtonCommon>
|
|
<ButtonCommon type='ghost' loading={isLoading}>Back to home</ButtonCommon>
|
|
</>
|
|
)
|
|
}
|
|
|
|
Test.Layout = Layout
|