import React from "react"; import "./SimpleCell.css"; import { getCN, renderProps, getClassName } from "../utils"; import ButtonTouch, { IButtonTouch } from "../ButtonTouch/ButtonTouch"; import { IconRightArrow } from "../../svg_icons/IconRightArrow"; type ISimpleCell = { children?: React.ReactNode, before?: React.ReactNode, after?: React.ReactNode, description?: React.ReactNode, bottom?: React.ReactNode, onClick?: IButtonTouch["onClick"], stopPropagation?: boolean, preventDefault?: boolean, expandable?: boolean, modeButtonTouch?: string disabled?: IButtonTouch["disabled"] //ButtonTouch ripple?: boolean //...props className?: string | undefined } const SimpleCell = ({ children, before, description, bottom, after, onClick, stopPropagation = true, preventDefault = false, expandable = false, modeButtonTouch = "background", ripple, className, disabled, ...props }: ISimpleCell) => { return (
{before &&
{before}
}
{children && (
{children}
)} {description && (
{description}
)}
{bottom &&
{bottom}
}
{after &&
{after}
} {expandable == true && ()} {expandable != true && ({expandable})}
); } export default SimpleCell;