chore: move sandbox to apps/ (#1171)

This commit is contained in:
rahim
2026-04-01 12:42:06 -07:00
committed by GitHub
parent 2fff955ab6
commit 6c5f8c0eda
77 changed files with 94 additions and 84 deletions
@@ -0,0 +1,9 @@
import { getInitialSource, onSourceChange } from '@app/shared/sandbox-listener';
import type { SourceId } from '@app/shared/sources';
import { useEffect, useState } from 'react';
export function useSource(audioOnly?: boolean): SourceId {
const [source, setSource] = useState(() => getInitialSource(audioOnly));
useEffect(() => onSourceChange(setSource), []);
return source;
}