import styled from 'styled-components' import { MenuListLinkItem } from '../MenuListItem' import { useComponentAbstraction } from '../../_lib/ComponentAbstraction' interface Props { links: readonly { text: string to: string id: ID }[] active: ID } export default function LeftMenu({ links, active, }: Props) { const { Link } = useComponentAbstraction() return ( {links.map((link, index) => ( {link.text} ))} ) } export function LeftMenuContent({ links }: Props) { return ( <> {links.map((link, index) => ( ))} ) } const Container = styled.div` display: flex; flex-direction: column; align-items: flex-start; ` const LinkItem = styled.div` display: flex; align-items: center; color: ${({ theme }) => theme.color.text3}; border-radius: 24px; font-weight: bold; font-size: 14px; line-height: 22px; padding: 0 16px; height: 40px; transition: 0.2s color; &:hover { transition: 0.2s color; color: ${({ theme }) => theme.color.text2}; } &[aria-current] { color: ${({ theme }) => theme.color.text2}; background-color: ${({ theme }) => theme.color.surface3}; } `