/* Copyright 2026 Marimo. All rights reserved. */ import type { Column, RowData, Table, TableFeature, } from "@tanstack/react-table"; import type { CopyColumnOptions } from "./types"; export const CopyColumnFeature: TableFeature = { getDefaultOptions: ( _table: Table, ): CopyColumnOptions => { return { enableCopyColumn: true, }; }, createColumn: ( column: Column, table: Table, ) => { column.getCanCopy = () => { return table.options.enableCopyColumn ?? false; }; }, };