b70e5b2f38
* update vite+typescript * update atproto api to latest, split out utils * add checkmark to post * add checkie to embed * revert change to example post * fix ext link color
7 lines
139 B
TypeScript
7 lines
139 B
TypeScript
import {AtUri} from '@atproto/api'
|
|
|
|
export function getRkey({uri}: {uri: string}): string {
|
|
const at = new AtUri(uri)
|
|
return at.rkey
|
|
}
|