feat: add profile actions placeholder

This commit is contained in:
Kentai Radiquum 2024-08-25 16:18:45 +05:00
parent 7dac3c072e
commit 0302b3f809
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
2 changed files with 42 additions and 1 deletions

View file

@ -0,0 +1,25 @@
"use client";
import { Card, Button } from "flowbite-react";
import { useRouter } from "next/navigation";
export const ProfileActions = (props: {
isMyProfile: boolean;
isFriendRequestsDisallowed: boolean;
profile_id: number;
}) => {
return (
<Card className="h-fit">
<div className="flex gap-2">
{props.isMyProfile && <Button color={"blue"}>Редактировать</Button>}
{!props.isMyProfile && (
<>
{!props.isFriendRequestsDisallowed && (
<Button color={"blue"}>Добавить в друзья</Button>
)}
<Button color={"red"}>Заблокировать</Button>
</>
)}
</div>
</Card>
);
};