Move the official NSW Government logo to public/nsw-logo.svg and reference it as an img in TopBar stories and template story helpers, replacing the large inline SVG blocks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
19 lines
576 B
TypeScript
19 lines
576 B
TypeScript
import { type ReactNode } from 'react'
|
|
|
|
export const NswLogo = () => (
|
|
<img src="/nsw-logo.svg" alt="NSW Government" className="h-6" />
|
|
)
|
|
|
|
export function TopBarAction({ icon, label, onClick }: { icon: ReactNode; label: string; onClick?: () => void }) {
|
|
return (
|
|
<button
|
|
type="button"
|
|
aria-label={label}
|
|
onClick={onClick}
|
|
className="flex size-12 items-center justify-center rounded-full text-white/80 transition-colors hover:bg-white/10 hover:text-white"
|
|
>
|
|
<span className="size-6 [&>svg]:size-full">{icon}</span>
|
|
</button>
|
|
)
|
|
}
|