* wip: new sync * wip: restructure routes * update * feat: improve sync * feat: repost with multi-account * feat: improve sync * feat: publish with multi account * fix: settings screen * feat: add zap for multi accounts
20 lines
579 B
TypeScript
20 lines
579 B
TypeScript
import { Siren } from "@phosphor-icons/react";
|
|
import type { Dispatch, SetStateAction } from "react";
|
|
|
|
export function WarningButton({
|
|
setWarning,
|
|
}: {
|
|
setWarning: Dispatch<SetStateAction<{ enable: boolean; reason: string }>>;
|
|
}) {
|
|
return (
|
|
<button
|
|
type="button"
|
|
onClick={() => setWarning((prev) => ({ ...prev, enable: !prev.enable }))}
|
|
className="inline-flex items-center h-8 gap-2 px-2.5 text-sm rounded-lg text-black/70 dark:text-white/70 w-max hover:bg-black/10 dark:hover:bg-white/10"
|
|
>
|
|
<Siren className="size-4" />
|
|
Mark as sensitive
|
|
</button>
|
|
);
|
|
}
|