silverwolf-x's picture
download
raw
340 Bytes
import { validator } from 'auth'
import { Button } from 'components'
async function myAction(a, b, c) {
'use server'
console.log('a')
}
export default function Page() {
return <Button action={myAction}>Delete</Button>
}
// TODO: should use `action` as function name?
export const action = validator(async () => {
'use server'
})

Xet Storage Details

Size:
340 Bytes
·
Xet hash:
0e6deab9931f3700500ed5ff09a8041fd8a6c1a885d6b147bd824fbd722d0d55

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.