feat: proper ts for NavBar component

This commit is contained in:
karishmas6
2024-10-10 21:11:05 +05:30
parent 9a0bea410e
commit 41dc92c596

View File

@@ -17,7 +17,7 @@ interface NavBarProps {
isRecording: boolean;
}
export const NavBar = ({ newRecording, recordingName, isRecording }: NavBarProps) => {
export const NavBar: React.FC<NavBarProps> = ({ newRecording, recordingName, isRecording }) => {
const { notify, browserId, setBrowserId, recordingLength } = useGlobalInfoStore();
const { state, dispatch } = useContext(AuthContext);