Skip to content

Commit

Permalink
[Package]: migrate ExternalLink component to TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
raskolnikov-rodion committed May 18, 2024
1 parent d279691 commit 0ad1a48
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import Link from "../Link";

function ExternalLink({ title, id, url }) {
type ExternalLinkProps = {
id: string | null,
title: string,
url: string,
};

function ExternalLink({ title, id, url }: ExternalLinkProps) {
if (!id) return null;

return (
Expand Down

0 comments on commit 0ad1a48

Please sign in to comment.