"use client";
import { FileText, Pin } from "lucide-react";
import { RichTextContent } from "@/components/rich-text";
import { ShareEyebrow } from "@/components/share/share-eyebrow";
import type { NoteShareData } from "../server/share-queries";
import { toggleShareNoteChecklistItem } from "../server/checklist-actions";
type Props = {
data: NoteShareData;
canWrite?: boolean;
token?: string;
};
export function NoteSharedView({ data, canWrite = false, token }: Props) {
const updated = new Date(data.updatedAt).toLocaleDateString(undefined, {
year: "numeric",
month: "long",
day: "numeric",
});
return (
<>
{data.pinned && (