import { useStore } from "@/lib/states" import { Button } from "./ui/button" import { Dialog, DialogContent, DialogTitle } from "./ui/dialog" interface InteractiveSegReplaceModal { show: boolean onClose: () => void onCleanClick: () => void onReplaceClick: () => void } const InteractiveSegReplaceModal = (props: InteractiveSegReplaceModal) => { const { show, onClose, onCleanClick, onReplaceClick } = props const onOpenChange = (open: boolean) => { if (!open) { onClose() } } return ( Do you want to remove it or create a new one?
) } const InteractiveSegConfirmActions = () => { const [ interactiveSegState, resetInteractiveSegState, handleInteractiveSegAccept, ] = useStore((state) => [ state.interactiveSegState, state.resetInteractiveSegState, state.handleInteractiveSegAccept, ]) if (!interactiveSegState.isInteractiveSeg) { return null } return (
) } interface ItemProps { x: number y: number positive: boolean } const Item = (props: ItemProps) => { const { x, y, positive } = props const name = positive ? "bg-[rgba(21,_215,_121,_0.936)] outline-[rgba(98,255,179,0.31)]" : "bg-[rgba(237,_49,_55,_0.942)] outline-[rgba(255,89,95,0.31)]" return (
) } const InteractiveSegPoints = () => { const clicks = useStore((state) => state.interactiveSegState.clicks) return (
{clicks.map((click) => { return ( ) })}
) } const InteractiveSeg = () => { return (
{/* */}
) } export { InteractiveSeg, InteractiveSegPoints }