import React from 'react' import { TextSkeleton } from '@app/components/placeholders' // TODO replace nested ternarys export const ProfileCell = ({ skeletonLoad, title, subTitle, className, titleClassName = '', children, }: { skeletonLoad?: boolean title: string subTitle?: string titleClassName?: string // title class name className?: string // subtitle class name children?: any }) => { // todo recompose if (children) { return (
{title}
{children}{subTitle}
) : null}{title}
{skeletonLoad ? ({subTitle}
) : null}