mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
5b0066140f
* chore: format all files in the project * fix: removing @types/react from dependencies * fix: adding prettier and eslint config * chore: format files * fix: upgrading turbo version * chore: ignoring warnings and adding todos * fix: updated the type of bubble menu item in the document editor * chore: format files --------- Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
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>
|
|
);
|