hunk.code_window: 	const filePathData = getItemFilePath(data);
   	const location = getItemLocation(data);
   	const isEphemeralLocation = useMatch('/:libraryId/ephemeral/:ephemeralId');
   	const isFolder = 'is_dir' in data.item ? data.item.is_dir || data.type === 'Location' : false;
   	const hidden = filePathData?.hidden ?? false;
   	const showSize =
   		showBytesInGridView &&
  
hunk.labels: keep keep keep keep replace replace keep keep keep
hunk.after_edit: 	const isFolder = filePathData?.is_dir;
   	const hidden = filePathData?.hidden;
  
hunk.file_path: interface/app/$libraryId/Explorer/View/GridView.tsx
hunk.type: replace
file: import { useEffect, useState } from 'react';
  
  export function useFocusState() {
  	const [focused, setFocused] = useState(true);
  	const focus = () => setFocused(true);
  	const blur = () => setFocused(false);
  	useEffect(() => {
  		window.addEventListener('focus', focus);
  		window.addEventListener('blur', blur);
  		return () => {
  			window.removeEventListener('focus', focus);
  			window.removeEventListener('blur', blur);
  		};
  	}, []);
  
  	return [focused];
  }
  