feat: add logged in user favorite and owned collection fetching

This commit is contained in:
Kentai Radiquum 2024-08-13 14:20:28 +05:00
parent 9f3e1b951a
commit b6878a0386
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
6 changed files with 84 additions and 151 deletions

View file

@ -1,12 +1,25 @@
export const Chip = (props: {
icon_name?: string;
icon_color?: string;
name?: string;
name_2?: string;
devider?: string;
bg_color?: string;
}) => {
return (
<div className={`rounded-sm ${props.bg_color || "bg-gray-500"}`}>
<p className="px-2 sm:px-4 py-0.5 sm:py-1 text-xs xl:text-base text-white">
<div
className={`px-2 sm:px-4 py-0.5 sm:py-1 rounded-sm ${
props.bg_color || "bg-gray-500"
} ${props.icon_name ? "flex items-center justify-center gap-1" : ""}`}
>
{props.icon_name && (
<span
className={`iconify w-6 h-6 ${props.icon_name} fill-${
props.icon_color || "white"
}`}
></span>
)}
<p className="text-xs text-white xl:text-base">
{props.name}
{props.name && props.devider ? props.devider : " "}
{props.name_2}