import Path from '../path'
import Point from '../point'
import Snippet from '../snippet'
import { getProps } from '../utils'
const XrayPart = props => {
// Don't bother if this is the only part on display
if (props.gist.only && props.gist.only.length === 1) return null
const i = Object.keys(props.gist.xray?.reveal).indexOf(props.partName)%10
const { topLeft, bottomRight } = props.part
return (
)
}
const Part = props => {
const { partName, part, app, gist, updateGist } = props
const grid = gist.paperless ? (
) : null
return (
{grid}
{props.gist?.xray?.reveal?.[partName] && }
{Object.keys(part.paths).map((pathName) => (
))}
{Object.keys(props.part.points).map((name) => (
))}
{Object.keys(props.part.snippets).map((snippetName) => (
))}
{focus}
)
}
export default Part