// styled.div``, styled(Temp)`` let scName = node.parent?.id?.name if (!scName) { if (isPlainSTE(node)) scName = `${node.parent.parent.parent.id.name}.${node.parent.key.name}` else return } let tag = '' if (isPlainSTE(node)) { tag = node.tag.property.name if (scName.split('.')[1]) { styledComponentsDict[scName.split('.')[1]] = { name: scName.split(‘.’)[1], tag } } styledComponentsDict[scName] = { name: scName, tag } } }, })
let scName = node.parent?.id?.name if (!scName) { if (isPlainSTE(node)) scName = `${node.parent.parent.parent.id.name}.${node.parent.key.name}` else return } let tag = '' if (isPlainSTE(node)) { tag = node.tag.property.name if (scName.split('.')[1]) { styledComponentsDict[scName.split('.')[1]] = { name: scName.split(‘.’)[1], tag } } styledComponentsDict[scName] = { name: scName, tag } } }, })
let scName = node.parent?.id?.name if (!scName) { if (isPlainSTE(node)) scName = `${node.parent.parent.parent.id.name}.${node.parent.key.name}` else return } let tag = '' if (isPlainSTE(node)) { tag = node.tag.property.name if (scName.split('.')[1]) { styledComponentsDict[scName.split('.')[1]] = { name: scName.split(‘.’)[1], tag } } styledComponentsDict[scName] = { name: scName, tag } // Styled.Temp, Temp } }, })