import { clsx } from 'clsx'; import * as React from 'react'; import { Layout } from '../propsValues/layouts'; export interface FlowHeaderProps { bottomContent?: React.ReactNode; className?: string; layout?: Layout.VERTICAL | Layout.HORIZONTAL; leftContent?: React.ReactNode; rightContent?: React.ReactNode; } const FlowHeader = React.forwardRef( ( { bottomContent, className, layout = Layout.HORIZONTAL, leftContent, rightContent, }: FlowHeaderProps, reference: React.ForwardedRef, ) => { const isVertical = layout === Layout.VERTICAL; return (
{leftContent} {rightContent}
{bottomContent}
); }, ); export default FlowHeader;