inspector/clients/web/src/components/elements/SubscribeButton/SubscribeButton.tsx
cliffhall dd46acba87 Refactor renamed the component groups to something less obtuse:
Elements -> Groups -> Screens -> Views
2026-03-28 12:58:47 -04:00

17 lines
358 B
TypeScript

import { Button } from "@mantine/core";
export interface SubscribeButtonProps {
subscribed: boolean;
onToggle: () => void;
}
export function SubscribeButton({
subscribed,
onToggle,
}: SubscribeButtonProps) {
return (
<Button variant="filled" size="sm" onClick={onToggle}>
{subscribed ? "Unsubscribe" : "Subscribe"}
</Button>
);
}