remove unused var
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
import { useNavigate } from 'react-router-dom';
|
|
||||||
import { useAuthStore } from '@/stores/auth-store';
|
import { useAuthStore } from '@/stores/auth-store';
|
||||||
import { apiClient } from '@/api/client';
|
import { apiClient } from '@/api/client';
|
||||||
import { isParticleDeleted, type Particle } from '@/api/types';
|
import { isParticleDeleted, type Particle } from '@/api/types';
|
||||||
@@ -72,7 +71,6 @@ interface TopBarProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function TopBar({ networkId, particle, streamParticle }: TopBarProps) {
|
export function TopBar({ networkId, particle, streamParticle }: TopBarProps) {
|
||||||
const navigate = useNavigate();
|
|
||||||
const network = useNetwork(networkId);
|
const network = useNetwork(networkId);
|
||||||
const userId = useAuthStore((s) => s.user?.id);
|
const userId = useAuthStore((s) => s.user?.id);
|
||||||
const isCreator = !!userId && userId === streamParticle.created_by_human_id;
|
const isCreator = !!userId && userId === streamParticle.created_by_human_id;
|
||||||
|
|||||||
Reference in New Issue
Block a user