mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-27 02:51:57 +02:00
19 lines
367 B
TypeScript
19 lines
367 B
TypeScript
import classNames from 'classnames'
|
|
|
|
export function Shortcut({ keys }: { keys: string[] }) {
|
|
return (
|
|
<span>
|
|
{keys.map((key, idx) => (
|
|
<span
|
|
className={classNames({
|
|
'dropdown-shortcut-char': key.length === 1,
|
|
})}
|
|
key={`${key}${idx}`}
|
|
>
|
|
{key}
|
|
</span>
|
|
))}
|
|
</span>
|
|
)
|
|
}
|