blob: af8cbfcb3c669e3bc1a8453d17bab2632f67ed32 [file] [log] [blame]
import Link from '@docusaurus/Link';
import Translate from '@docusaurus/Translate';
import React, { CSSProperties, ReactNode } from 'react';
import ArrowIcon from '../Icons/arrow';
import './styles.scss';
interface MoreProps {
link: string;
text?: ReactNode;
style?: CSSProperties;
}
export default function More(props: MoreProps) {
const { link, text = <Translate id="learnmore">Learn More</Translate>, style } = props;
return (
<div style={style} className="more">
<Link to={link}>
{text}
<ArrowIcon />
</Link>
</div>
);
}