mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-27 00:05:26 +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)
|