/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
bench/basic-app/app/ui/feedback.js
25 строк
657 B
dan
Add more realistic bench fixtures (#95807)
15 июл 2026, 14:46
Не верифицирован
15 июл 2026, 14:46
7ffacec
Код
Авторство
О чём код?
'use client' import { fixtureName } from './vendor-fixtures' import { useState } from 'react' export default function Feedback({ prompt }) { const [sent, setSent] = useState(null) if (sent) return <p className="feedback feedback-done">Thanks for the feedback.</p> return ( <div className="feedback"> <span>{prompt}</span> <button type="button" onClick={() => setSent('up')} aria-label="Helpful"> Yes </button> <button type="button" onClick={() => setSent('down')} aria-label="Not helpful" > No </button> </div> ) } export const __layers = [fixtureName].length