import { ArrowUpRight } from "@phosphor-icons/react/ssr"; import type { Widget } from "@/lib/config/schema"; import { PN_CARD_CLASS } from "@/components/widgets/WidgetCard"; import { BrandIcon } from "@/components/widgets/BrandIcon"; type BookmarkWidget = Extract; export function BookmarkWidget({ widget }: { widget: BookmarkWidget }) { if (widget.links && widget.links.length > 0) { return (
{widget.name}
{widget.description && {widget.description}}
{widget.links.map((link) => ( {link.name} ))}
); } return (
{widget.name}
{widget.description && {widget.description}}
); }