Files
memos/web/src/components/LearnMore.tsx
2023-04-03 15:38:14 +08:00

20 lines
436 B
TypeScript

import Icon from "./Icon";
interface Props {
url: string;
className?: string;
}
const LearnMore = (props: Props) => {
const { url, className } = props;
return (
<a className={`${className || ""} text-sm text-blue-600 hover:opacity-80 hover:underline`} href={url} target="_blank">
Learn more
<Icon.ExternalLink className="inline -mt-1 ml-1 w-4 h-auto opacity-80" />
</a>
);
};
export default LearnMore;