Files
leon-ai--leon/web-app/src/layout/sidebar/logo/logo.tsx
T
2026-07-13 12:44:08 +08:00

26 lines
411 B
TypeScript

import { Link } from '@tanstack/react-router'
import './logo.sass'
interface LogoProps {
src: string
width: number
height: number
alt?: string
to?: '/'
}
export function Logo({
src,
width,
height,
alt = 'Leon',
to = '/'
}: LogoProps) {
return (
<Link className="logo" to={to} aria-label="Leon home">
<img src={src} width={width} height={height} alt={alt} />
</Link>
)
}