Home / Function/ ContentLink() — supabase Function Reference

ContentLink() — supabase Function Reference

Architecture documentation for the ContentLink() function in NavigationMenuGuideListItems.tsx from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/docs/components/Navigation/NavigationMenu/NavigationMenuGuideListItems.tsx lines 160–181

const ContentLink = React.memo(function ContentLink(props: any) {
  const pathname = usePathname()

  return (
    <li className="mb-1.5">
      <Link
        href={props.url}
        className={[
          'cursor-pointer transition text-sm',
          props.url === pathname
            ? 'text-brand-link'
            : 'hover:text-foreground text-foreground-lighter',
        ].join(' ')}
      >
        {props.icon && (
          <Image alt={props.icon} width={12} height={12} src={`${pathname}${props.icon}`} />
        )}
        {props.name}
      </Link>
    </li>
  )
})

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free