pub.solar/_includes/Langlink.tsx

5 lines
175 B
TypeScript
Raw Normal View History

export default ({ otherLang, baseURL }) => <a
href={otherLang.urlPrefix ? `/${otherLang.urlPrefix }` : baseURL}
class="ps-homelink ps-homelink_lang"
>{otherLang.slug}</a>