Some checks failed
Branch Build CE / Build Setup (push) Has been cancelled
Branch Build CE / Build-Push Admin Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Web Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Space Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Live Collaboration Docker Image (push) Has been cancelled
Branch Build CE / Build-Push API Server Docker Image (push) Has been cancelled
Branch Build CE / Build-Push Proxy Docker Image (push) Has been cancelled
Branch Build CE / Build-Push AIO Docker Image (push) Has been cancelled
Branch Build CE / Upload Build Assets (push) Has been cancelled
Branch Build CE / Build Release (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Codespell / Check for spelling errors (push) Has been cancelled
Sync Repositories / sync_changes (push) Has been cancelled
Synced from upstream: 8853637e981ed7d8a6cff32bd98e7afe20f54362
22 lines
721 B
TypeScript
22 lines
721 B
TypeScript
import React from "react";
|
|
|
|
import Image from "next/image";
|
|
|
|
type Props = {
|
|
title: string;
|
|
description?: React.ReactNode;
|
|
image: any;
|
|
};
|
|
|
|
export const ProfileEmptyState: React.FC<Props> = ({ title, description, image }) => (
|
|
<div className={`mx-auto grid h-full w-full place-items-center p-8 `}>
|
|
<div className="flex w-full flex-col items-center text-center">
|
|
<div className="flex h-14 w-14 items-center justify-center rounded-full bg-custom-background-90">
|
|
<Image src={image} width={32} alt={title} />
|
|
</div>
|
|
<h6 className="mb-3 mt-3.5 text-base font-semibold">{title}</h6>
|
|
{description && <p className="text-sm text-custom-text-300">{description}</p>}
|
|
</div>
|
|
</div>
|
|
);
|