import { useViewportType } from '../../useViewportType';
import { DEFAULT_SEPARATOR } from '../constants';
export const useLogic = ({ direction = 'default', separator = DEFAULT_SEPARATOR, }) => {
    const { isMobile } = useViewportType();
    const hasSeparator = direction === 'column' || (isMobile && direction === 'default');
    const descriptionContextProviderProps = {
        separator: hasSeparator ? '' : separator,
    };
    return { descriptionContextProviderProps, direction };
};
