import React from 'react';
import { useAppSelector } from '../stores/hooks';
type Props = {
  navBar?: boolean;
};

export default function BaseDivider({ navBar = false }: Props) {
  const borders = useAppSelector((state) => state.style.borders);
  const classAddon = navBar
    ? 'hidden lg:block lg:my-0.5 dark:border-dark-700'
    : 'my-6 -mx-6 dark:border-dark-800';

  return <hr className={`${classAddon} border-t ${borders} `} />;
}
