/** @jsx jsx */ import { alpha } from "@theme-ui/color"; import { jsx } from "theme-ui"; import Link from "../Link"; import Chevron from "./Chevron"; const ChevronIcon = ({ isExpanded }) => ( ); const styles = { Root: { display: "block", position: "relative", width: "100%", p: 0, m: 0, border: 0, background: "transparent", color: "text", fontFamily: "inherit", fontSize: "inherit", textAlign: "left" }, Button: { position: "absolute", right: 0, top: 0, bottom: 0, width: "2.5rem", background: "transparent", color: "inherit", border: 0, textAlign: "center", display: "flex", justifyContent: "center", alignItems: "center" }, Title: { variant: "linkStyles.nav", display: "block", pr: "2.5rem", ":hover": { variant: "linkStyles.nav.:hover", bg: alpha("primary", 0.05) } } }; function ToggleableItemTitle({ id, item, isActive, isExpanded, toggleItem }) { return item.link ? ( {item.title} ) : ( ); } function ItemTitle({ id, item, isActive, isExpanded, toggleItem }) { return item.items ? ( ) : ( {item.title} ); } export default ItemTitle;