"use client";
import Link from "next/link";
import { useIdentityData } from "components/IdentityProvider";
import { theme } from "tailwind.config";
import { getBasePublicationURL } from "app/lish/createPub/getPublicationURL";
import { Json } from "supabase/database.types";
import { PubLeafletPublication } from "lexicons/api";
import { AtUri } from "@atproto/syntax";
import { ActionButton } from "./ActionButton";
import { SpeedyLink } from "components/SpeedyLink";
import { PublishSmall } from "components/Icons/PublishSmall";
export const PublicationButtons = (props: {
currentPubUri: string | undefined;
}) => {
let { identity } = useIdentityData();
// don't show pub list button if not logged in or no pub list
// we show a "start a pub" banner instead
if (!identity || !identity.atp_did) return ;
return (