fix build

This commit is contained in:
Francesco Sansalvadore committed 2026-03-25 16:08:04 +01:00
1 parent 22b4d53bc1
commit c8fbcefe20
1 file changed
+19 -20
@@ -214,25 +214,24 @@ const ProjectUsage = () => {
}
export default ProjectUsage
const PanelHeader = (props: {
icon: ReactNode
title: string
href?: string
}) => {
const Tag = props?.href ? Link : 'div'
return (
<Tag href={props.href}>
<div
className={
'flex items-center space-x-3 opacity-80 transition ' +
(props.href ? 'cursor-pointer hover:text-gray-1200 hover:opacity-100' : '')
}
>
<div>{props.icon}</div>
<span className="flex items-center space-x-1">
<h4 className="mb-0 text-lg">{props.title}</h4>
</span>
</div>
</Tag>
const PanelHeader = (props: { icon: ReactNode; title: string; href?: string }) => {
const inner = (
<div
className={
'flex items-center space-x-3 opacity-80 transition ' +
(props.href ? 'cursor-pointer hover:text-gray-1200 hover:opacity-100' : '')
}
>
<div>{props.icon}</div>
<span className="flex items-center space-x-1">
<h4 className="mb-0 text-lg">{props.title}</h4>
</span>
</div>
)
if (props.href) {
return <Link href={props.href}>{inner}</Link>
}
return inner
}