import React from 'react'; import * as Styled from './ModalHeader.style'; import type { IModalHeaderProps } from './ModalHeader.types'; import { Typography } from '../Typography'; export const ModalHeader = ({ left, heading, right, ...viewProps }: IModalHeaderProps) => { const Blank = ; const LeftComponent = left ? left.component || ( {left.label || 'Clear'} ) : Blank; const RightComponent = right ? right.component || ( {right.label || 'Close'} ) : Blank; const Heading = ( {heading} ); return ( {LeftComponent} {Heading} {RightComponent} ); };