Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

T3KeyboardCommands.tsx

13 lines455 Bytes

1import type { PropsWithChildren } from "react";
2import { View } from "react-native";
3​
4import type { HardwareKeyboardCommand } from "../features/keyboard/hardwareKeyboardCommands";
5​
6export function T3KeyboardCommands(
7 props: PropsWithChildren<{
8 readonly enabledCommands: ReadonlyArray<HardwareKeyboardCommand>;
9 readonly onCommand: (command: HardwareKeyboardCommand) => void;
10 }>,
11) {
12 return <View className="flex-1">{props.children}</View>;