Files
ADS3-Design-System/src/components/templates/_story-helpers.tsx
Richie b8fb8c63c6 Use NSW logo SVG asset from public/ instead of inline SVG
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>
2026-06-03 15:30:38 +10:00

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>
)
}