mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-29 17:39:41 +05:00
feat: add profile actions placeholder
This commit is contained in:
parent
7dac3c072e
commit
0302b3f809
2 changed files with 42 additions and 1 deletions
25
app/components/Profile/Profile.Actions.tsx
Normal file
25
app/components/Profile/Profile.Actions.tsx
Normal 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>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue