import { HTMLProps } from "react";
import { EditingContext } from "../../contexts/editing";
import { useDefinedContext } from "../../utils/definedContext";
export function EditableText({value, ...props}: HTMLProps) {
const [editing,] = useDefinedContext(EditingContext)
return editing ? (
) : (
{value}
)
}