mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
16 lines
939 B
JavaScript
16 lines
939 B
JavaScript
import { registerServerReference } from "private-next-rsc-server-reference";
|
|
/* __next_internal_action_entry_do_not_use__ {"0090b5db271335765a4b0eab01f044b381b5ebd5cd":{"name":"$$RSC_SERVER_ACTION_1"},"706a88810ecce4a4e8b59d53b8327d7e98bbf251d7":{"name":"$$RSC_SERVER_ACTION_0"}} */ import { validator } from 'auth';
|
|
import { Button } from 'components';
|
|
export const $$RSC_SERVER_ACTION_0 = async function myAction(a, b, c) {
|
|
console.log('a');
|
|
};
|
|
registerServerReference($$RSC_SERVER_ACTION_0, "706a88810ecce4a4e8b59d53b8327d7e98bbf251d7", null);
|
|
var myAction = $$RSC_SERVER_ACTION_0;
|
|
export default function Page() {
|
|
return <Button action={myAction}>Delete</Button>;
|
|
}
|
|
export const $$RSC_SERVER_ACTION_1 = async function() {};
|
|
registerServerReference($$RSC_SERVER_ACTION_1, "0090b5db271335765a4b0eab01f044b381b5ebd5cd", null);
|
|
// TODO: should use `action` as function name?
|
|
export const action = validator($$RSC_SERVER_ACTION_1);
|