Files
KGStudio/src/components/TrackControl.tsx
T
2025-08-11 18:37:21 -07:00

18 lines
379 B
TypeScript

import React from 'react';
import { useProjectStore } from '../stores/projectStore';
const TrackControl: React.FC = () => {
const { addTrack } = useProjectStore();
const handleAddTrack = () => {
addTrack();
};
return (
<div className="track-control">
<button onClick={handleAddTrack}>+ Add track</button>
</div>
);
};
export default TrackControl;