setAlertOpen(false)}
cancelActionText={t('buttons.cancel')}
message={
<>
{t.rich('modals.summon.messages.remove', {
summon: gridSummon?.object.name[locale] || '',
strong: (chunks) => {chunks}
})}
>
}
/>
)
}
const searchModal = () => {
return (
)
}
// Methods: Core element rendering
const quickSummon = () => {
if (gridSummon) {
const classes = classNames({
[styles.quickSummon]: true,
[styles.empty]: !gridSummon.quick_summon,
})
return
}
}
const image = () => {
let image = (
)
const content = (
{image}
{editable ? (
) : (
''
)}
)
return gridSummon ? (
{content}
) : (
content
)
}
const unitContent = (
<>
{contextMenu()}
{quickSummon()}
{image()}
{gridSummon && (
)}
{summon?.name[locale]}
{searchModal()}
>
)
return unitContent
}
export default SummonUnit