diff --git a/src/components/big-card.tsx b/src/components/big-card.tsx index f71c86480..126444b32 100644 --- a/src/components/big-card.tsx +++ b/src/components/big-card.tsx @@ -1,19 +1,25 @@ import React from 'react'; import { Card, CardBody, Stack, Text } from 'soapbox/components/ui'; +import IconButton from 'soapbox/components/ui/icon-button/icon-button'; + +const closeIcon = require('@tabler/icons/outline/x.svg'); interface IBigCard { title: React.ReactNode; subtitle?: React.ReactNode; children: React.ReactNode; + onClose?: boolean; + buttonEvent?(): void; } -const BigCard: React.FC = ({ title, subtitle, children }) => { +const BigCard: React.FC = ({ title, subtitle, children, buttonEvent, onClose = false }) => { return ( - +
+ {onClose && ()} {title} {subtitle && {subtitle}}