61 lines
1.6 KiB
TypeScript
61 lines
1.6 KiB
TypeScript
/*
|
|
Copyright (C) 2023-2026 QuantumNous
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as
|
|
published by the Free Software Foundation, either version 3 of the
|
|
License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
For commercial licensing, please contact support@quantumnous.com
|
|
*/
|
|
import {
|
|
CameraIcon,
|
|
FileIcon,
|
|
ImageIcon,
|
|
ScreenShareIcon,
|
|
type LucideIcon,
|
|
} from 'lucide-react'
|
|
|
|
type AttachmentAction = {
|
|
action: string
|
|
icon: LucideIcon
|
|
label: string
|
|
}
|
|
|
|
type InputToolNotice = {
|
|
description?: string
|
|
title: string
|
|
}
|
|
|
|
export const ATTACHMENT_ACTIONS = [
|
|
{ action: 'upload-file', icon: FileIcon, label: 'Upload file' },
|
|
{ action: 'upload-photo', icon: ImageIcon, label: 'Upload photo' },
|
|
{
|
|
action: 'take-screenshot',
|
|
icon: ScreenShareIcon,
|
|
label: 'Take screenshot',
|
|
},
|
|
{ action: 'take-photo', icon: CameraIcon, label: 'Take photo' },
|
|
] satisfies AttachmentAction[]
|
|
|
|
export function getAttachmentActionNotice(action: string): InputToolNotice {
|
|
return {
|
|
description: action,
|
|
title: 'Feature in development',
|
|
}
|
|
}
|
|
|
|
export function getSearchActionNotice(): InputToolNotice {
|
|
return {
|
|
title: 'Search feature in development',
|
|
}
|
|
}
|