/*! * Copyright (c) Microsoft. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project. */ import { memo } from 'react' import { useCellStyle, useHandleColumnClick } from './CellContainer.hooks.js' import { Container } from './CellContainer.styles.js' import type { CellContainerProps } from './CellContainer.types.js' import { ValidationCellWrapper } from './ValidationCellWrapper.js' export type { CellContainerProps } from './CellContainer.types.js' export const CellContainer: React.FC = memo( function CellContainer(props) { const { onClick, column, children } = props const handleColumnClick = useHandleColumnClick(column, onClick) const cellStyle = useCellStyle(column, onClick) return ( {children} ) }, )