base admin

This commit is contained in:
hamid zarghami
2026-06-03 12:24:32 +03:30
parent 76f3e1bf6e
commit 3bfd5fd1eb
16 changed files with 374 additions and 3 deletions
+30
View File
@@ -226,6 +226,36 @@ const BookPage = forwardRef<HTMLDivElement, BookPageProps>(
/>
);
case 'audio':
return (
<audio
key={obj.id || index}
src={obj.audioUrl || ''}
controls
preload="metadata"
style={withEntrance(
{
...baseStyle,
width: obj.width ? `${obj.width * scale}px` : `${320 * scale}px`,
height: obj.height ? `${obj.height * scale}px` : `${56 * scale}px`,
zIndex: index,
pointerEvents: 'auto',
},
obj,
index,
)}
onClick={(e) => {
e.stopPropagation();
}}
onMouseDown={(e) => {
e.stopPropagation();
}}
onTouchStart={(e) => {
e.stopPropagation();
}}
/>
);
case 'link': {
const isInternalLink = obj.linkUrl?.startsWith('page://');
const linkStyle = {