mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-11 03:08:41 +00:00
12 lines
421 B
TypeScript
12 lines
421 B
TypeScript
export const projectSelected = (currentDir: string, worktree: string, sandboxes?: string[]) =>
|
|
worktree === currentDir || sandboxes?.includes(currentDir) === true
|
|
|
|
export const projectTileActive = (args: {
|
|
menu: boolean
|
|
preview: boolean
|
|
open: boolean
|
|
overlay: boolean
|
|
hoverProject?: string
|
|
worktree: string
|
|
}) => args.menu || (args.preview ? args.open : args.overlay && args.hoverProject === args.worktree)
|