adds handling of links for some (the same that are in the templates.ts file) atproto apps
it lets you paste links like https://tangled.org/@pdsls.dev/pdsls and it will convert it to the at:// link
unfortunately doesn't work with links that don't provide all the necessary information to get the record (like the links for issues on tangled)
if it detects a link on the search it will try seeing if it has an app that matches it and then runs a function to handle it
it uses an enum for the apps thing because i thought it would look cool, but can easily be replaced with strings if that's preferred
really hope i didn't mess anything up
looks fine so i'll merge
just some tips:
const app = appList[host as keyof typeof appList]you can directly use the AppUrl type:const app = appList[host as AppUrl]the logic inside the appHandleLink looks fine, maybe some of the if chains could be made more generic but it's not a problem at this scale
thanks