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