import { FC } from 'react'; import styled from 'styled-components'; import { Flex, BoxProps, Text } from '../../../general'; type SectionDividerProps = { alignment?: 'left' | 'center' | 'right'; label: string; } & BoxProps; const AligmnentMap = { left: 'flex-start', center: 'center', right: 'flex-end', }; const HorizontalLine = styled.div` flex: 1; height: 1px; background-color: rgba(var(--rlm-border-rgba)); `; export const SectionDivider: FC = ( props: SectionDividerProps ) => { const { id, label, alignment = 'left' } = props; return ( {(alignment === 'center' || alignment === 'right') && } {label} {(alignment === 'center' || alignment === 'left') && } ); };