Files
frontend-component-header/src/studio-header/BrandNav.tsx
Braden MacDonald 171a770235 feat: enable the use of TypeScript in this repo (#604)
* feat: enable Typescript in this repo

* refactor: rename studio-header files to .ts[x]

* chore: fix minor type warnings

* chore: add types for frontend-platform

* chore: fix type issues

* chore: update name of suppressed lint check
2025-07-21 10:24:52 -07:00

26 lines
482 B
TypeScript

import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const BrandNav = ({
studioBaseUrl,
logo,
logoAltText,
}) => (
<Link to={studioBaseUrl}>
<img
src={logo}
alt={logoAltText}
className="d-block logo"
/>
</Link>
);
BrandNav.propTypes = {
studioBaseUrl: PropTypes.string.isRequired,
logo: PropTypes.string.isRequired,
logoAltText: PropTypes.string.isRequired,
};
export default BrandNav;