import Quote from "@/components/post/Quote";
import type { SPID } from "@/types/ui";
import { NostrSnippet } from "../post/wrappers/Nostr";
export default Snippets;
function Snippets({ post }: { post: SPID }) {
return (
);
}
export function ComposerSnippet({
onClick,
children,
}: {
onClick?: any;
children: any;
}) {
function onc(e: React.MouseEvent) {
e.stopPropagation();
if (onClick) onClick();
}
return (
{onClick && (
×
)}
{children}
);
}
function PostSnippet({ post }: { post: SPID }) {
if (!post) return No post data
;
try {
if ("trill" in post) return
;
else if ("nostr" in post) return ;
// else if ("twatter" in post)
// return (
//
//
//
// );
// else if ("rumors" in post)
// return (
//
//
//

// {}} />
//
{date_diff(post.post.time, "short")}
//
//
// );
else return Unsupported post type
;
} catch (error) {
console.error("Error rendering post snippet:", error);
return Failed to load post
;
}
}
export function ReplySnippet({ post }: { post: SPID }) {
if (!post) return No post to reply to
;
try {
if ("trill" in post)
return (
);
else if ("nostr" in post)
return (
);
else return Cannot reply to this post type
;
} catch (error) {
console.error("Error rendering reply snippet:", error);
return Failed to load reply context
;
}
}