import React from 'react'; import data from '../constants/sampleMovieData'; import DataTable, { defaultThemes } from '../../src/index'; const customStyles = { header: { style: { minHeight: '56px', }, }, headRow: { style: { borderTopStyle: 'solid', borderTopWidth: '1px', borderTopColor: defaultThemes.default.divider.default, }, }, headCells: { style: { '&:not(:last-of-type)': { borderRightStyle: 'solid', borderRightWidth: '1px', borderRightColor: defaultThemes.default.divider.default, }, }, }, cells: { style: { '&:not(:last-of-type)': { borderRightStyle: 'solid', borderRightWidth: '1px', borderRightColor: defaultThemes.default.divider.default, }, }, }, }; const columns = [ { name: 'Title', selector: row => row.title, sortable: true, }, { name: 'Director', selector: row => row.director, sortable: true, }, { name: 'Year', selector: row => row.year, sortable: true, }, ];export const CompactGrid = () => ( <DataTable title="Movie List" columns={columns} data={data} customStyles={customStyles} pagination selectableRows dense /> );export default { title: 'Custom Styles/Compact Grid', };