⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
import { LinkIncludingShortenedCollectionAndTags } from "@linkwarden/types/global";
import React from "react";
function LinkDate({ link }: { link: LinkIncludingShortenedCollectionAndTags }) {
const formattedDate = new Date(
(link.importDate || link.createdAt) as string
).toLocaleString("en-US", {
year: "numeric",
month: "short",
day: "numeric",
});
return (
<div className="flex items-center gap-1 text-neutral min-w-fit">
<i className="bi-calendar3 text-"></i>
<p>{formattedDate}</p>
</div>
);
}
export default React.memo(LinkDate);