Added more agent skills
This commit is contained in:
@@ -16,7 +16,7 @@ import { useIsMounted } from './useIsMounted.js'
|
||||
*/
|
||||
export function CookieButton({ className }: { className?: string } = {}) {
|
||||
const isMounted = useIsMounted()
|
||||
const { decided, reopen } = useConsentContext()
|
||||
const { decided, reopen, texts } = useConsentContext()
|
||||
|
||||
// Render nothing until mounted — prevents hydration mismatch (no project
|
||||
// ConsentWrapper workaround needed).
|
||||
@@ -30,7 +30,13 @@ export function CookieButton({ className }: { className?: string } = {}) {
|
||||
'dark:bg-[var(--ipal-surface-dark,#171717)] dark:border-[var(--ipal-border-dark,#262626)] dark:hover:bg-[var(--ipal-hover-dark,#262626)]'
|
||||
|
||||
return (
|
||||
<button aria-label="Cookie settings" className={cls} data-ipal="cookie-button" onClick={reopen}>
|
||||
<button
|
||||
// a11y label per locale: the panel's "settings title" (Cookie Settings global)
|
||||
aria-label={texts.settingsTitle}
|
||||
className={cls}
|
||||
data-ipal="cookie-button"
|
||||
onClick={reopen}
|
||||
>
|
||||
<Cookie
|
||||
aria-hidden="true"
|
||||
className="h-5 w-5 text-[var(--ipal-text,#525252)] dark:text-[var(--ipal-text-dark,#d4d4d4)]"
|
||||
|
||||
Reference in New Issue
Block a user