mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-29 05:00:06 +02:00

Prevent browser translation of stuff that shouldn't be translated in IDE page GitOrigin-RevId: 96a75b51c3c8efc4cbcec7eb17d9e331a03e2c96
22 lines
621 B
TypeScript
22 lines
621 B
TypeScript
import MaterialIcon from '@/shared/components/material-icon'
|
|
import { Dispatch, FC, SetStateAction } from 'react'
|
|
|
|
export const CollapsibleFileHeader: FC<{
|
|
name: string
|
|
count: number
|
|
collapsed: boolean
|
|
toggleCollapsed: Dispatch<SetStateAction<any>>
|
|
}> = ({ name, count, collapsed, toggleCollapsed }) => (
|
|
<button
|
|
type="button"
|
|
className="collapsible-file-header"
|
|
onClick={toggleCollapsed}
|
|
translate="no"
|
|
>
|
|
<MaterialIcon
|
|
type={collapsed ? 'keyboard_arrow_right' : 'keyboard_arrow_down'}
|
|
/>
|
|
{name}
|
|
<div className="collapsible-file-header-count">{count}</div>
|
|
</button>
|
|
)
|