Live video on the AT Protocol
1import { useNavigation } from "@react-navigation/native";
2import { useBrandingAsset } from "@streamplace/components";
3import { useEffect } from "react";
4
5export default function useTitle(user: string) {
6 const navigation = useNavigation();
7 const title = useBrandingAsset("siteTitle")?.data || "Streamplace";
8 useEffect(() => {
9 navigation.setOptions({
10 title: `@${user} on ${title}`,
11 });
12 }, [user, navigation]);
13}