hunk.code_window:     // Enum: ??
       redundancy_goal Int?     @default(1)
       date_created    DateTime @default(now())
       date_modified   DateTime @default(now())
       tag_objects TagOnObject[]
       @@map("tag")
  
hunk.labels: keep replace replace replace keep keep keep keep
hunk.after_edit:     redundancy_goal Int?
       date_created  DateTime?
       date_modified DateTime?
  
hunk.file_path: core/prisma/schema.prisma
hunk.type: replace
file: import { useEffect, useState } from 'react';
  import { useThemeStore } from '@sd/client';
  
  //this hook is being used for some ui elements & icons that need to be inverted
  
  export function useIsDark(): boolean {
  	const themeStore = useThemeStore();
  	const [isDark, setIsDark] = useState(themeStore.theme === 'dark');
  
  	useEffect(() => {
  		if (themeStore.syncThemeWithSystem) {
  			if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
  				setIsDark(true);
  			} else setIsDark(false);
  		} else {
  			if (themeStore.theme === 'dark') {
  				setIsDark(true);
  			} else if (themeStore.theme === 'vanilla') {
  				setIsDark(false);
  			}
  		}
  	}, [setIsDark, themeStore]);
  
  	return isDark;
  }
  