lbry-desktop/web/component/meme.jsx
infinite-persistence 8874008245 Support homepage-specific memes
1446

- Requires an accompanying commit in `odysee-frontend`.
- The change assumes that the `odysee-frontend` is the only project that uses these files directly, i.e. other clients will use the API instead.
2022-05-10 21:43:14 +08:00

22 lines
388 B
JavaScript

// @flow
import React from 'react';
import Button from 'component/button';
type Props = {
meme: ?{ text: string, url: string },
};
export default function Meme(props: Props) {
const { meme } = props;
if (!meme) {
return null;
}
return (
<h1 className="home__meme">
<Button button="link" navigate={meme.url}>
{meme.text}
</Button>
</h1>
);
}