Skip to content

Commit 535996e

Browse files
committed
chore: add fake components
1 parent 91a12b9 commit 535996e

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

src/robot/index.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
import useBaseComponent from "../internal/base-component/use-base-component";
4+
import { applyDisplayName } from "../internal/utils/apply-display-name";
5+
6+
export interface RobotProps {
7+
size: "small" | "large";
8+
}
9+
10+
/**
11+
* @awsuiSystem core
12+
*/
13+
export default function Robot(props: RobotProps) {
14+
const baseComponentProps = useBaseComponent("Robot", { props: {} });
15+
return (
16+
<span {...props} {...baseComponentProps}>
17+
🤖
18+
</span>
19+
);
20+
}
21+
22+
applyDisplayName(Robot, "Robot");

src/star/index.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
import useBaseComponent from "../internal/base-component/use-base-component";
4+
import { applyDisplayName } from "../internal/utils/apply-display-name";
5+
6+
export interface StarProps {
7+
/**
8+
* @awsuiSystem core
9+
*/
10+
className: string;
11+
}
12+
13+
export default function Star(props: StarProps) {
14+
const baseComponentProps = useBaseComponent("Star", { props: {} });
15+
return (
16+
<span {...props} {...baseComponentProps}>
17+
🤖
18+
</span>
19+
);
20+
}
21+
22+
applyDisplayName(Star, "Star");

0 commit comments

Comments
 (0)