mirror of
https://github.com/usememos/memos.git
synced 2025-04-17 10:57:24 +02:00
18 lines
326 B
TypeScript
18 lines
326 B
TypeScript
interface Props {
|
|
url: string;
|
|
}
|
|
|
|
const AutoLink: React.FC<Props> = ({ url }: Props) => {
|
|
return (
|
|
<a
|
|
className="text-blue-600 dark:text-blue-400 cursor-pointer underline break-all hover:opacity-80 decoration-1"
|
|
href={url}
|
|
target="_blank"
|
|
>
|
|
{url}
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export default AutoLink;
|