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.

39 lines
2.3 KiB

  1. import { User } from "@/types";
  2. import { Link } from "@inertiajs/react";
  3. import { PropsWithChildren } from "react";
  4. import { Book, FileMinus } from "react-feather";
  5. export default function BookmarkedPages({ 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"><Book className="stroke-[#29BF12] mr-2" />Bookmarked 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. <td><FileMinus className="stroke-error-main active:stroke-neutral-10" size={20} /></td>
  18. </tr>
  19. <tr className="hover:cursor-pointer hover:bg-secondary-background active:bg-primary-main active:text-white">
  20. <td className='text-md leading-4 py-2 w-full'><Link href=''>
  21. Page Title<br />
  22. <span className="text-xs"><i>Subject Category</i></span>
  23. </Link></td>
  24. <td><FileMinus className="stroke-error-main active:stroke-neutral-10" size={20} /></td>
  25. </tr>
  26. <tr className="hover:cursor-pointer hover:bg-secondary-background active:bg-primary-main active:text-white">
  27. <td className='text-md leading-4 py-2 w-full'><Link href=''>
  28. Page Title<br />
  29. <span className="text-xs"><i>Subject Category</i></span>
  30. </Link></td>
  31. <td><FileMinus className="stroke-error-main active:stroke-neutral-10" size={20} /></td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. <div className="btn btn-link text-secondary-main p-0 mt-auto mb-0">View all bookmarks</div>
  36. </div>
  37. )
  38. }