import React, { FunctionComponent, HTMLAttributes, ReactNode } from 'react';
import Subhead from '../Typography/Subhead/Subhead';
import { getClassName } from '../../helpers/getClassName';
import { classNames } from '../../lib/classNames';
import { usePlatform } from '../../hooks/usePlatform';
import Headline from '../Typography/Headline/Headline';
import { hasReactNode } from '../../lib/utils';
export interface InfoRowProps extends HTMLAttributes {
header: ReactNode;
}
const InfoRow: FunctionComponent = ({ header, className, children, ...restProps }: InfoRowProps) => {
const platform = usePlatform();
const baseClassName = getClassName('InfoRow', platform);
return (
{hasReactNode(header) &&
{header}
}
{children}
);
};
export default InfoRow;