| @@ -1,23 +1,25 @@ | ||
| 1 | 1 | import { extendify } from '@auto-launch/icons'; |
| 2 | 2 | import { Icon } from '@wordpress/icons'; |
| 3 | 3 | |
| 4 | -export const Logo = () => { | |
| 5 | - if (window.extSharedData?.partnerLogo) { | |
| 4 | +export const Logo = ({ src, name }) => { | |
| 5 | + if (src) { | |
| 6 | 6 | return ( |
| 7 | - <div className="flex h-10 max-w-52 items-center overflow-hidden md:max-w-72"> | |
| 7 | + <div className="flex h-ui-logo max-w-52 items-center overflow-hidden rounded-ui-logo md:max-w-72"> | |
| 8 | 8 | <img |
| 9 | - className="h-full w-auto max-w-full object-contain" | |
| 10 | - src={window.extSharedData.partnerLogo} | |
| 11 | - alt={window.extSharedData?.partnerName ?? ''} | |
| 9 | + className="h-full w-auto max-w-full rounded-ui-logo object-contain" | |
| 10 | + src={src} | |
| 11 | + alt={name ?? ''} | |
| 12 | 12 | /> |
| 13 | 13 | </div> |
| 14 | 14 | ); |
| 15 | 15 | } |
| 16 | + | |
| 17 | + // Drawn in currentColor, so it stays legible on any page color a partner picks. | |
| 16 | 18 | return ( |
| 17 | 19 | <Icon |
| 18 | 20 | width={undefined} |
| 19 | 21 | icon={extendify} |
| 20 | - className="h-8 w-auto text-banner-text" | |
| 22 | + className="h-ui-mark w-auto text-ui-page-text" | |
| 21 | 23 | /> |
| 22 | 24 | ); |
| 23 | 25 | }; |