import { useCurrentPage } from "@saasquatch/component-boilerplate";
export function useNavigationSidebarItem(props) {
  const currentPage = useCurrentPage();
  return {
    states: {
      active: currentPage.pathname === props.path,
    },
    data: {
      label: props.label,
      icon: props.icon,
      path: props.path,
    },
    backgroundColor: props.backgroundColor,
    backgroundHoverColor: props.backgroundHoverColor,
    textColor: props.textColor,
    textHoverColor: props.textHoverColor,
    borderRadius: props.borderRadius,
    backgroundFocusedColor: props.backgroundFocusedColor,
    textFocusedColor: props.textFocusedColor,
    padding: props.padding,
  };
}
