mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 01:49:40 +05:00
feat: add logged in user favorite and owned collection fetching
This commit is contained in:
parent
9f3e1b951a
commit
b6878a0386
6 changed files with 84 additions and 151 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue