Files
stats/apps/dashboard/src/components/overview/overview-details-button.tsx
2024-09-01 15:02:12 +02:00

29 lines
551 B
TypeScript

import { pushModal } from '@/modals';
import { ScanEyeIcon } from 'lucide-react';
import type { IChartProps } from '@openpanel/validation';
import { Button } from '../ui/button';
type Props = {
chart: IChartProps;
};
const OverviewDetailsButton = ({ chart }: Props) => {
return (
<Button
size="icon"
variant="ghost"
onClick={() => {
pushModal('OverviewChartDetails', {
chart: chart,
});
}}
>
<ScanEyeIcon size={18} />
</Button>
);
};
export default OverviewDetailsButton;