import React, { memo } from "react";

const DefaultCell = memo(({ value }) => (
  <>
    {React.isValidElement(value)
      ? value
      : typeof value === "object"
      ? null
      : value}
  </>
));

export default DefaultCell;
