import React, { useState } from "react" import ContextRepositoryEditor from "../contexts/ContextRepositoryEditor" import useArrayState from "../hooks/useArrayState" export default function RepositoryEditor({ children, id, name, start, end, conditions }) { const [_name, setName] = useState(name) const [_start, setStart] = useState(start) const [_end, setEnd] = useState(end) const {_conditions, appendCondition, removeCondition} = useArrayState(conditions) return ( {children} ) }