import { jsx as _jsx } from "react/jsx-runtime";
import clsx from "clsx";
import styles from "./styles.module.scss";
const TableCell = ({ children, variant = "body", className, align = "left", ...props }) => {
    const cellClass = clsx({
        [styles.tableBodyCell]: variant === "body",
        [styles.tableHeaderCell]: variant === "head",
        ...(className && { [className]: true }),
    });
    if (variant === "body") {
        return (_jsx("td", { ...props, align: align, className: cellClass, children: children }));
    }
    return (_jsx("th", { ...props, align: align, className: cellClass, children: children }));
};
export default TableCell;
