'use client' import { useState } from 'react' export function InlineActionButton({ action }) { const [result, setResult] = useState(null) const handleClick = async () => { const res = await action(10) setResult(res) } return (
{result &&
{JSON.stringify(result, null, 2)}
}
) }