Emails
1 month ago
EngagementChart
1 month ago
MediaHub
1 month ago
Onboarding
1 month ago
Popup
1 month ago
Skeletons
1 week ago
WhatsNew
1 month ago
charts
1 month ago
test
1 month ago
AdminMenuSync.js
1 month ago
ChartEmptyState.js
1 month ago
ChooseDate.js
1 month ago
ColorPicker.js
1 month ago
ExtendPlugins.js
1 month ago
Filters.js
1 month ago
Link.js
1 month ago
Navbar.js
1 week ago
NoFound.js
1 month ago
PageHeader.js
1 month ago
PluginRecommendations.js
1 month ago
PostScheduleField.js
1 month ago
PrestoPlayerIcon.js
1 month ago
ProGateOverlay.js
1 month ago
QuickAccess.js
1 month ago
RankedTable.js
1 month ago
StatCard.js
1 month ago
TopMedia.js
1 month ago
TopPerformingMedia.js
1 month ago
TopUsers.js
1 month ago
TruncatedTitle.js
1 month ago
UpgradeNotice.js
1 month ago
UpgradeToPro.js
1 month ago
VideoModal.js
1 month ago
WelcomeBanner.js
1 month ago
NoFound.js
40 lines
| 1 | import React from "react"; |
| 2 | import { Container, Button, Text, Title } from "@bsf/force-ui"; |
| 3 | |
| 4 | const NoFound = ({ icon, title, description, buttonText, buttonIcon, onButtonClick }) => { |
| 5 | return ( |
| 6 | <Container |
| 7 | className="w-full bg-background-primary border border-solid border-border-subtle rounded-xl py-16 px-8 items-center" |
| 8 | direction="column" |
| 9 | gap="md" |
| 10 | > |
| 11 | {icon && ( |
| 12 | <Container.Item className="flex items-center justify-center"> |
| 13 | {icon} |
| 14 | </Container.Item> |
| 15 | )} |
| 16 | <Container.Item className="flex flex-col items-center gap-2 [text-wrap:balance]"> |
| 17 | <Title size="sm" tag="h3" title={title} className="text-text-primary text-center" /> |
| 18 | <Text size="sm" className="font-normal text-text-secondary m-0 text-center"> |
| 19 | {description} |
| 20 | </Text> |
| 21 | </Container.Item> |
| 22 | {buttonText && onButtonClick && ( |
| 23 | <Container.Item> |
| 24 | <Button |
| 25 | onClick={onButtonClick} |
| 26 | variant="primary" |
| 27 | size="md" |
| 28 | icon={buttonIcon} |
| 29 | iconPosition="left" |
| 30 | > |
| 31 | {buttonText} |
| 32 | </Button> |
| 33 | </Container.Item> |
| 34 | )} |
| 35 | </Container> |
| 36 | ); |
| 37 | }; |
| 38 | |
| 39 | export default NoFound; |
| 40 |