Files
Dorod-Sky/skyvern-frontend/src/routes/root/Profile.tsx

25 lines
603 B
TypeScript
Raw Normal View History

2024-04-15 11:54:12 -07:00
import { Button } from "@/components/ui/button";
import { ExitIcon, PersonIcon } from "@radix-ui/react-icons";
type Props = {
name: string;
};
2024-05-07 11:31:05 -07:00
function Profile({ name }: Props) {
2024-04-15 11:54:12 -07:00
return (
<div className="flex items-center rounded-lg border-2 p-2">
<div className="flex items-center gap-2">
2024-04-15 11:54:12 -07:00
<PersonIcon className="h-4 w-4" />
<p className="w-40 overflow-hidden text-ellipsis">{name}</p>
</div>
<div>
2024-05-07 11:31:05 -07:00
<Button variant="outline" size="icon">
2024-04-15 11:54:12 -07:00
<ExitIcon className="h-4 w-4" />
</Button>
</div>
</div>
);
}
export { Profile };