import { P as e } from "../../../../packageName-CJwD6mUt.js";
const t = `
import { DataTable, ITableColumnProps, Badge } from '${e}';

const App = () => {

  const [selectedColumns, setSelectedColumns] = useState<ITableColumnProps<YourDataType>[]>([]);

  const handleColumnChange = (updatedColumns: ITableColumnProps<YourDataType>[]) => {
    setSelectedColumns(updatedColumns);

    // Write the function to mock data by yourself
    
  };

  return (
    <DataTable 
      dataSource={data}  // Mock data
      columns={columns} 
      tableHeight={tableHeight} 
      columnSelector={{
        enabled: true,
        value: selectedColumns,
        onChange: handleColumnChange,
      }}
    />
  );
};

export default App;
`;
export {
  t as default
};
//# sourceMappingURL=columnSelectorSource.js.map
