-
-
Save ShekMak/8c6f549eac766e49271d7ef6744ecbc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Player } from '@lottiefiles/react-lottie-player'; | |
import Link from 'next/link'; | |
import React from 'react'; | |
function EmptyTodo({ tab }: any) { | |
return ( | |
<div className='h-full flex flex-col justify-center items-center md:w-1/2 md:m-auto'> | |
<Player | |
autoplay | |
loop | |
src="https://assets6.lottiefiles.com/packages/lf20_gctatsbh.json" | |
style={{ height: '300px', width: '300px' }} | |
></Player> | |
<p className='align-middle text-center mt-4 mb-6 px-6'>{tab.message}</p> | |
{ | |
tab.title === 'In Progress' && | |
<Link href="/todo/new-task"> | |
<a className='h-12 w-52 flex items-center justify-center bg-black text-white rounded-md'> | |
<i className='bi bi-plus-lg mr-2'></i> | |
<span className='capitalize'>Add new task</span> | |
</a> | |
</Link> | |
} | |
</div> | |
); | |
} | |
export default EmptyTodo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment