Defining columns inside function components
when I am trying to define my column array inside a function component, whereas in the examples the columns are defined inside the function component,
https://codesandbox.io/s/gallant-austin-kn24pq?file=/src/main.tsx:701-723
can someone help me with this please