8874008245
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.
22 lines
388 B
JavaScript
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>
|
|
);
|
|
}
|