import {Text, Box, Flex, Stack} from '@sanity/ui' import React, {createElement} from 'react' import styled from 'styled-components' interface MetaInfoProps { title: string action?: string icon?: any children?: React.ReactNode markRemoved?: boolean } const MetaText = styled(Text)` color: inherit; ` export function MetaInfo({ title, action, icon, children, markRemoved, }: MetaInfoProps): React.ReactElement { return ( {icon && ( {createElement(icon)} )} {title} {action &&
{action}
} {children}
) }