26 lines
493 B
TypeScript
26 lines
493 B
TypeScript
import { View } from "react-native";
|
|
|
|
import { Button } from "@/components/ui/Button";
|
|
|
|
interface AdminControlsProps {
|
|
onAddAdmin: () => void;
|
|
}
|
|
|
|
export const AdminControls = ({
|
|
onAddAdmin,
|
|
}: AdminControlsProps) => {
|
|
return (
|
|
<View className="flex-row">
|
|
<Button
|
|
onPress={onAddAdmin}
|
|
icon="account-plus-outline"
|
|
buttonColor="#6750a4"
|
|
buttonTextColor="white"
|
|
disabled={false}
|
|
>
|
|
Add Admin
|
|
</Button>
|
|
</View>
|
|
);
|
|
};
|