/** * 单列cell */ import React, { FC } from "react"; import clsx from "clsx"; export interface CellProps { /** label */ label: React.ReactNode | string; value: React.ReactNode | string; unit?: string; className?: string; } export const Cell: FC = props => { const { unit } = props; return (
{props.label}
{props.value} {unit ? {unit} : ""}
); };