import * as React from "react" import { cn } from "cn" // Intended consumers: transactions, channels, and accounts. export type DataListRootProps = React.ComponentProps<"div"> & { columns: string } function DataListRoot({ className, columns, style, ...props }: DataListRootProps) { return (
) } function DataListHeader({ className, ...props }: React.ComponentProps<"div">) { return (
) } export type DataListHeadProps = React.ComponentProps<"span"> & { align?: "left" | "center" | "right" } function DataListHead({ align = "left", className, ...props }: DataListHeadProps) { return ( ) } function DataListBody({ className, ...props }: React.ComponentProps<"div">) { return (
) } function DataListRow({ className, ...props }: React.ComponentProps<"div">) { return (
) } export type DataListCellProps = React.ComponentProps<"div"> & { label?: React.ReactNode labelClassName?: string align?: "left" | "center" | "right" } function DataListCell({ align = "left", children, className, labelClassName, label, ...props }: DataListCellProps) { return (
{label != null && ( {label} )} {children}
) } export const DataList = Object.assign(DataListRoot, { Header: DataListHeader, Head: DataListHead, Body: DataListBody, Row: DataListRow, Cell: DataListCell, })