// Copyright (c) Meta Platforms, Inc. and affiliates.
'use client';
import {
CheckBadgeIcon as VerifiedIcon,
ExclamationCircleIcon as AlertIcon,
NoSymbolIcon as BlockIcon,
} from '@heroicons/react/24/solid';
import {useIcon} from '@astryxdesign/core/Icon';
import {HStack, VStack} from '@astryxdesign/core/Layout';
import {Text} from '@astryxdesign/core/Text';
import {Theme, defineTheme, useTheme} from '@astryxdesign/core/theme';
const statusIconTheme = defineTheme({
name: 'status-icons-docs',
icons: {
success: ,
warning: ,
error: ,
},
});
function StatusRow() {
const success = useIcon('success');
const warning = useIcon('warning');
const error = useIcon('error');
return (
{success}
Passed
{warning}
Flaky
{error}
Failed
);
}
export default function UseIconHookUsage() {
const {mode} = useTheme();
return (
Current theme
Theme with its own status icons
);
}