- {
- tabs === 1 ?
-
-
- changeInput(e.target.value)}/>
-
-
- : tabs === 3 ?
-
-
-
-
- {Observatory.stars} Stars
-
-
-
-
-
-
- {Observatory.constellations} Constellations
-
-
-
-
-
-
- {Observatory.wallets} Cosmic Nurturers
-
-
-
-
- :
-
+ const fetchTableData = async (tableName: string, filter?: string) => {
+ try {
+ const { data, error } = await supabase
+ .from(tableName)
+ .select("*")
+ .or(`transaction_signature.eq.${filter}, from_address.eq.${filter}`);
+ // 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1
+ if (error) {
+ throw new Error(error.message);
}
-