import { Breadcrumbs } from "@/app/components/Breadcrumbs/Breadcrumbs";
import { InternalScreen } from "@/app/components/InternalScreen/InternalScreen";
import { ProfileCard } from "@/app/components/ProfileCard/ProfileCard";
import { SettingsInput } from "@/app/components/SettingsInput/SettingsInput";
import { useBlacklist } from "@/app/providers/BlacklistProvider/useBlacklist";
import { useUserInformation } from "@/app/providers/InformationProvider/useUserInformation";
import { Text } from "@mantine/core";
interface OtherProfileProps {
publicKey: string;
}
export function OtherProfile(props : OtherProfileProps) {
const [userInfo] = useUserInformation(props.publicKey);
const [blocked, blockUser, unblockUser] = useBlacklist(userInfo.publicKey);
return (
<>
{userInfo.username.trim() != "" && (
<>
Username for search user or send message.
>
)}
This is user public key. If user haven't set a @username yet, you can send message using your public key.
{blocked && (<>
If you want the user to be able to send you messages again, you can unblock them. You can block them later.
>)}
{!blocked && (<>
The person will no longer be able to message you if you block them. You can unblock them later.
>)}
>
);
}