/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
bench/basic-app/app/ui/sort-header.js
17 строк
447 B
dan
[Bench] Extend bench app to have realistic client chunk counts (#95814)
15 июл 2026, 16:13
Не верифицирован
15 июл 2026, 16:13
0156307
Код
Авторство
О чём код?
'use client' import { describeBulkGraph } from './vendor-bulk' import { useState } from 'react' export default function SortHeader({ label, icon }) { const [dir, setDir] = useState(null) return ( <button type="button" className="sort-header" data-dir={dir} onClick={() => setDir((d) => (d === 'asc' ? 'desc' : 'asc'))} > {label} {icon} </button> ) } export const __vendor = typeof describeBulkGraph