hunk.code_window: 				} else {
   					"window_not_fullscreened"
   				};
   				event
   					.window()
  
hunk.labels: keep replace keep keep keep keep
hunk.after_edit: 					(false, "window_not_fullscreened")
  
hunk.file_path: apps/desktop/src-tauri/src/main.rs
hunk.type: replace
file: import { getIcon, iconNames } from '@sd/assets/util';
  import { ImgHTMLAttributes } from 'react';
  import { useIsDark } from '~/hooks';
  
  export type IconName = keyof typeof iconNames;
  
  interface Props extends ImgHTMLAttributes<HTMLImageElement> {
  	name: IconName;
  	size?: number;
  	theme?: 'dark' | 'light';
  }
  
  export const Icon = ({ name, size, theme, ...props }: Props) => {
  	const isDark = useIsDark();
  	return (
  		<img
  			src={getIcon(name, theme ? theme === 'dark' : isDark)}
  			width={size}
  			height={size}
  			{...props}
  		/>
  	);
  };
  