ui: disable input on limit

This commit is contained in:
nick-delirium 2025-05-21 16:41:03 +02:00
parent eab0f60734
commit 07cc0f0939
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
2 changed files with 7 additions and 1 deletions

View file

@ -61,8 +61,13 @@ function ChatInput({
}
}}
ref={inputRef}
placeholder={'Ask anything about your product and users...'}
placeholder={
limited
? `You've reached the daily limit for queries, come again tomorrow!`
: 'Ask anything about your product and users...'
}
size={'large'}
disabled={limited}
value={inputValue}
onChange={(e) => setInputValue(e.target.value)}
suffix={

View file

@ -57,6 +57,7 @@ module.exports = {
'indigo-lightest': 'oklch(96.2% 0.018 272.314)',
'indigo': 'oklch(58.5% 0.233 277.117)',
/** DEPRECATED */
figmaColors: {
'accent-secondary': 'rgba(62, 170, 175, 1)',
main: 'rgba(57, 78, 255, 1)',