You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.6 KiB

  1. import { User } from "@/types";
  2. import { Link } from "@inertiajs/react";
  3. import { PropsWithChildren } from "react";
  4. import { Book, BookOpen, FileMinus } from "react-feather";
  5. export default function RecentPages({ user }: PropsWithChildren<{ user: User }>) {
  6. const thisUser = user;
  7. return (
  8. <div className="h-full w-full bg-neutral-10 shadow-md p-6 rounded-lg flex flex-col">
  9. <p className="font-bold text-xl flex items-center"><BookOpen className="stroke-[#AAF683] mr-2" />Recently Viewed Pages</p>
  10. <table className="table mt-2">
  11. <tbody>
  12. <tr className="hover:cursor-pointer hover:bg-secondary-background active:bg-primary-main active:text-white">
  13. <td className='text-md leading-4 py-2 w-full'><Link href=''>
  14. Page Title<br />
  15. <span className="text-xs"><i>Subject Category</i></span>
  16. </Link></td>
  17. </tr>
  18. <tr className="hover:cursor-pointer hover:bg-secondary-background active:bg-primary-main active:text-white">
  19. <td className='text-md leading-4 py-2 w-full'><Link href=''>
  20. Page Title<br />
  21. <span className="text-xs"><i>Subject Category</i></span>
  22. </Link></td>
  23. </tr>
  24. <tr className="hover:cursor-pointer hover:bg-secondary-background active:bg-primary-main active:text-white">
  25. <td className='text-md leading-4 py-2 w-full'><Link href=''>
  26. Page Title<br />
  27. <span className="text-xs"><i>Subject Category</i></span>
  28. </Link></td>
  29. </tr>
  30. <tr className="hover:cursor-pointer hover:bg-secondary-background active:bg-primary-main active:text-white">
  31. <td className='text-md leading-4 py-2 w-full'><Link href=''>
  32. Page Title<br />
  33. <span className="text-xs"><i>Subject Category</i></span>
  34. </Link></td>
  35. </tr>
  36. <tr className="hover:cursor-pointer hover:bg-secondary-background active:bg-primary-main active:text-white">
  37. <td className='text-md leading-4 py-2 w-full'><Link href=''>
  38. Page Title<br />
  39. <span className="text-xs"><i>Subject Category</i></span>
  40. </Link></td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. </div>
  45. )
  46. }