From bafd0b8c5ddd6f769a834618de8b03688f0fd835 Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Sat, 31 Aug 2024 12:38:49 +0200
Subject: Remove unused components

---
 components/ExternalLink.tsx | 24 ------------------------
 1 file changed, 24 deletions(-)
 delete mode 100644 components/ExternalLink.tsx

(limited to 'components/ExternalLink.tsx')

diff --git a/components/ExternalLink.tsx b/components/ExternalLink.tsx
deleted file mode 100644
index 8f05675..0000000
--- a/components/ExternalLink.tsx
+++ /dev/null
@@ -1,24 +0,0 @@
-import { Link } from 'expo-router';
-import { openBrowserAsync } from 'expo-web-browser';
-import { type ComponentProps } from 'react';
-import { Platform } from 'react-native';
-
-type Props = Omit<ComponentProps<typeof Link>, 'href'> & { href: string };
-
-export function ExternalLink({ href, ...rest }: Props) {
-  return (
-    <Link
-      target="_blank"
-      {...rest}
-      href={href}
-      onPress={async (event) => {
-        if (Platform.OS !== 'web') {
-          // Prevent the default behavior of linking to the default browser on native.
-          event.preventDefault();
-          // Open the link in an in-app browser.
-          await openBrowserAsync(href);
-        }
-      }}
-    />
-  );
-}
-- 
cgit v1.2.3-18-g5258

