import figures from '@roots/bud-support/figures' import {Box, Text} from '@roots/bud-support/ink' export interface Props { borderColor?: string children?: any compact?: boolean footer?: any head?: any marginTop?: number paddingY?: number } const View = ({ borderColor = `dim`, children, compact, footer, head, marginTop = 1, paddingY = 0, }: Props) => { return ( {figures.lineDownRightArc} {head} {!compact && ( {children} )} {figures.lineUpRightArc} {footer} ) } export default View