"use client" import { Color, ImageColor, ImageVariant } from "@/generated/prisma"; import { useState } from "react"; import { Label } from "../ui/label"; import { Switch } from "../ui/switch"; import GlowingImageBorder from "./GlowingImageBorder"; type Props = { variant: ImageVariant; colors: (ImageColor & { color: Color })[]; alt: string; src: string; nsfw: boolean; } export default function GlowingImageWithToggle({ variant, colors, alt, src, nsfw }: Props) { const [animate, setAnimate] = useState(true); const [revealed, setRevealed] = useState(!nsfw) return (
{nsfw && (
)}
); }