mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-07 06:43:29 +00:00
* init * changes * Now updating statistics once a minute * More robust statistics updater * Concurrency is hard * improvements to stats * refactor * adjust setting back/forward padding so it matches top bar * refactor sidebar * rename * setting up screens * some changes * Co-authored-by: Brendan Allan <Brendonovich@users.noreply.github.com> * yes * yes2 * refactored explorerItem.ts * important explorer code shouldn't be thrown away in a util moment * support for multiple thumbnails in ExplorerItem * clippy * move debug * yes * label filters * ts * comment out unconnected stuff * added .mid for midi files --------- Co-authored-by: Ericson Fogo Soares <ericson.ds999@gmail.com> Co-authored-by: Brendan Allan <brendonovich@outlook.com>
15 lines
345 B
TypeScript
15 lines
345 B
TypeScript
import * as Icons from '@sd/assets/icons';
|
|
import { getIcon } from '@sd/assets/util';
|
|
import { HardwareModel } from '@sd/client';
|
|
|
|
export function hardwareModelToIcon(hardwareModel: HardwareModel) {
|
|
switch (hardwareModel) {
|
|
case 'MacBookPro':
|
|
return 'Laptop';
|
|
case 'MacStudio':
|
|
return 'SilverBox';
|
|
default:
|
|
return 'Laptop';
|
|
}
|
|
}
|