{"version":3,"file":"details-WWujtGzl.js","sources":["../../../app/frontend/entrypoints/admin/components/locations/components/details.jsx"],"sourcesContent":["import React, { useState, useEffect } from 'react'\nimport FormInput from '../../form-input'\nimport FormSelect from '../../form-select';\nimport TogglePanel from '../../toggle-panel';\nimport { fetchChains } from '../../../modules/chains'\n\nfunction Details(props) {\n const [location, setLocation] = useState(props.location);\n const [chains, setChains] = useState([]);\n\n useEffect(function () {\n setLocation(props.location)\n }, [props.location])\n\n useEffect(() => {\n fetchChains()\n .then((data) => {\n let _chains = data.map((ele) => ( { value: ele.id, label: ele.name }));\n setChains(_chains);\n })\n }, [])\n\n return (\n
\n Internal name with more details\n
\n\n Shown to end users\n
\n\n Unique external identifer for this location\n
\n