sistema-de-chamados/src/components/sidebar-brand.tsx
rever-tecnologia 028154a7bc
All checks were successful
CI/CD Web + Desktop / Detect changes (push) Successful in 5s
Quality Checks / Lint, Test and Build (push) Successful in 4m4s
CI/CD Web + Desktop / Deploy Convex functions (push) Has been skipped
CI/CD Web + Desktop / Deploy (VPS Linux) (push) Successful in 4m10s
style(sidebar): reduz espacamento entre titulo e subtitulo da marca
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 08:41:14 -03:00

47 lines
1.3 KiB
TypeScript

"use client"
import Image from "next/image"
import {
SidebarMenu,
SidebarMenuButton,
SidebarMenuItem,
} from "@/components/ui/sidebar"
interface SidebarBrandProps {
logoSrc: string
logoAlt: string
title: string
subtitle: string
}
export function SidebarBrand({ logoSrc, logoAlt, title, subtitle }: SidebarBrandProps) {
return (
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton
asChild
size="lg"
className="cursor-default select-none hover:bg-transparent hover:text-inherit active:bg-transparent active:text-inherit focus-visible:ring-0"
>
<div className="flex items-center gap-3">
<div className="flex h-12 w-12 items-center justify-center rounded-lg">
<Image
src={logoSrc}
alt={logoAlt}
width={48}
height={48}
className="h-12 w-12 object-contain"
priority
/>
</div>
<div className="flex flex-col leading-none">
<span className="text-lg font-semibold">{title}</span>
<span className="text-sm text-muted-foreground">{subtitle}</span>
</div>
</div>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
)
}