Upgrades:
- Profile Editor - Categories - FAQ - Search
This commit is contained in:
15
src/element/category-link.tsx
Normal file
15
src/element/category-link.tsx
Normal file
@ -0,0 +1,15 @@
|
||||
import { ReactNode } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { Icon } from "./icon";
|
||||
|
||||
export default function CategoryLink({ id, name, icon }: { id: string; name: ReactNode; icon: string }) {
|
||||
return (
|
||||
<Link
|
||||
to={`/category/${id}`}
|
||||
key={id}
|
||||
className="min-w-[10rem] flex items-center justify-between px-6 py-4 rounded-xl bg-layer-1">
|
||||
{name}
|
||||
<Icon name={icon} />
|
||||
</Link>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user