Typescript Errors With Custom Buttons Codesandbox

Typescript Errors With Custom Buttons Codesandbox