2021-10-15 20:41:41 +00:00
|
|
|
import { IoCreateOutline, IoMailOutline } from "react-icons/io5";
|
2021-09-24 23:34:48 +00:00
|
|
|
import { useAtom } from "jotai";
|
2021-10-15 20:41:41 +00:00
|
|
|
|
2021-09-24 23:34:48 +00:00
|
|
|
import { bottomSheetOpenAtom } from "../pages/messages";
|
|
|
|
|
|
|
|
export default function EmptyMessages() {
|
|
|
|
const setIsBottomSheetOpen = useAtom(bottomSheetOpenAtom)[1];
|
|
|
|
const openNewMessageArea = () => setIsBottomSheetOpen(true);
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className="text-center my-auto">
|
2021-10-15 20:41:41 +00:00
|
|
|
<IoMailOutline className="mx-auto h-12 w-12 text-gray-400" aria-hidden="true" />
|
|
|
|
<h3 className="mt-2 text-sm font-medium text-gray-900">You don't have any messages yet</h3>
|
2021-09-24 23:34:48 +00:00
|
|
|
<p className="mt-1 text-sm text-gray-500">
|
|
|
|
Get started by sending a message
|
|
|
|
<br />
|
|
|
|
to someone you know.
|
|
|
|
</p>
|
|
|
|
<div className="mt-6">
|
|
|
|
<button
|
|
|
|
type="button"
|
2021-10-15 22:24:28 +00:00
|
|
|
className="inline-flex items-center px-4 py-2 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-primary-500 focus:outline-none focus:ring-2 focus:ring-offset-2"
|
2021-09-24 23:34:48 +00:00
|
|
|
onClick={openNewMessageArea}
|
|
|
|
>
|
2021-10-15 20:41:41 +00:00
|
|
|
<IoCreateOutline className="-ml-1 mr-2 h-5 w-5" aria-hidden="true" />
|
|
|
|
Type a new message
|
2021-09-24 23:34:48 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|