feat(video): add onPress handler to video send button

Handle video creation when the send button is pressed
This commit is contained in:
icarus 2025-10-12 04:32:31 +08:00
parent 2f9b174095
commit 8b875935d0

View File

@ -90,7 +90,13 @@ export const VideoPanel = ({ provider, video }: VideoPanelProps) => {
</div>
<Tooltip content={t('common.send')} closeDelay={0}>
<Button color="primary" radius="full" isIconOnly isLoading={isProcessing} className="h-6 w-6 min-w-0">
<Button
color="primary"
radius="full"
isIconOnly
isLoading={isProcessing}
className="h-6 w-6 min-w-0"
onPress={handleCreateVideo}>
<ArrowUp size={16} className="text-primary-foreground" />
</Button>
</Tooltip>