Can I assume that you’re programming this custom Block? If so, then I believe what you’re looking for is ViewPicker:
import React, { useState } from "react";
import { ViewPicker, useBase } from "@airtable/blocks/ui";
const ViewPickerExample = () => {...